block by micahstubbs d9f3cd0d926af7a5a1a8

X-Value Mouseover with Droplines

Full Screen

forked this bl.ock and added droplines from the focus point on the series line to the x and y axes.


A line chart with mouseover so that you can read the y-value based on the closest x-value. The x-value is found using d3.mouse and scale.invert. The y-value is then found by bisecting the data.

index.html