From 3964d4c646a88cbea12dd54424dee02727ce5c40 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 3 Jun 2016 22:39:29 -0700 Subject: [PATCH] JS: highlight dots and lines together --- misc/web/timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/web/timeline.js b/misc/web/timeline.js index f3e6fd1..d4cf0a8 100644 --- a/misc/web/timeline.js +++ b/misc/web/timeline.js @@ -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);