I am working on this fiddle : https://jsfiddle.net/thatOneGuy/x2pxx92e/6/
I have this code for mouseover and out events :
d3.select('#circleSVG').on('mouseover', function(d) {
console.log('mouseover')
d3.select(this).classed('testCircle', true)
console.log(this)
}).on('mouseout', function(){
d3.select(this).classed('testCircle', false)
})
The testCircle
class looks like so :
.testCircle{
fill: orange;
opacity:0.25;
}
But the only style that gets brought through on this class is the opacity. It doesn't change the fill. Any idea why ?