ho trovato sia di loro lavora nel mio test:qual è la differenza tra selection.style e selection.attr in D3.js?
.on("mouseover",
function() {
d3.select(this)
.select("text")
.style("fill","red");
})
o
.on("mouseover",
function() {
d3.select(this)
.select("text")
.attr("fill","red");
})
sovrascrive 'attr', ma non sovrascrive' stile'. Questo è quello che mi ha fatto inciampare. – hobbes3