Answer the question
In order to leave comments, you need to log in
Is it possible to somehow select an SVG (D3) element by setting a function not from the svg itself?
I made a chart on d3.js and there is a mouse hover event
var myChart = d3.select(this.refs.chart).append("svg")
.selectAll("rect")
.on('mouseover', function(d){
...
d3.select(this)//хочу так же но из функции на странице
.style('opacity', 0.5)
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question