I am attempting to make the text of a node (rendered as a svg:text
element) to become "darker" when hovered. I have created a
blocks.org
example:
http://bl.ocks.org/1678703
It seem to me as though the svg:g is totally ignoring the mouseover
event.
Most relevant snippet from the example would be
var text = vis.append("svg:g").selectAll("g")
.data( process.nodes )
.enter().append("svg:g")
.attr("pointer-events", "all")
.on("mouseover", function(){ console.log("mouseOver");
d3.select(this).select("text").style("fill", "#000");} )
.on("mouseout", function(){ console.log("mouseOut");
d3.select(this).select("text").style("fill", "#ccc");} );
Thank you.