D3 multi line chart mouseover issue

36 views
Skip to first unread message

Arnav Bose

unread,
Jul 29, 2015, 2:25:47 AM7/29/15
to d3-js
I found one solution in jsfiddle: 


Here, the mouseover is actually working simultaneously for both the charts. I am stuck at this point as I want mouseover to work for only one chart - i.e. the chart over which I am hovering the mouse. Could the same code be used to get the effect I am looking for? 

Николай Слободчук

unread,
Aug 1, 2015, 10:35:44 PM8/1/15
to d3-js
Here's an advanced solution http://bl.ocks.org/mbostock/8033015 which I'm trying to digest myself.
If you have only two lines I guess you could divide the area of the chart by calculating the invisible line which the average of the two lines.
Reply all
Reply to author
Forward
0 new messages