block by mbostock 3902569

X-Value Mouseover

Full Screen

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.

Updated Example →

index.html