JS: highlight dots and lines together

This commit is contained in:
Brian Warner 2016-06-03 22:39:29 -07:00
parent a0ce912305
commit 3964d4c646

View File

@ -508,7 +508,7 @@ d3.json("data.json", function(d) {
chart.selectAll("circle.c2c").filter(d => d.col == dot.col)
.attr("r", 10);
chart.selectAll("line.c2c")
.classed("active", d => d[2] == dot.col);
.classed("active", d => d.col == dot.col);
})
.on("mouseout", dot => {
tip.hide(dot);