Favorite tooltip (simple version) v5
This line chart displays a time series of daily closing values from a CSV file, with a tooltip that follows the mouse to reveal the nearest data point. Built with D3 v5 as an SVG visualization, it uses `d3.line`, `d3.scaleTime`, and `d3.scaleLinear` to render axes and the path. A transparent overlay rectangle captures mouse movements, and a `d3.bisector` finds the closest date to position a highlighted circle, which appears on mouseover and hides on mouseout.
AI-generated descriptionThis is a follow on from the simple line graph written with d3.js v5 and based on @mbostock's example here.
It impliments a simple tooltip which I find particularly neat. This implimentation is designed as a simple example which will be built on to create a slightly more complex example.
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 5 of d3.js.