Tooltip on a Multi-line Chart - I
✓ Published0🌍 Public
Aandrewcowley
Last edited Aug 31, 2018
Created on Aug 31, 2018
A multi-line chart displays state population changes over time, with each line color-coded per state. A vertical guide line and tooltip appear on mousemove, showing the year and ranked populations. The tooltip sorts states by population for that year and lists them with values. Built with D3 v4, it uses `d3.scaleLinear`, `d3.line`, SVG paths, and a transparent overlay rect to capture mouse events.
AI-generated descriptionforked from <a href='http://bl.ocks.org/wdickerson/'>wdickerson</a>'s block: <a href='http://bl.ocks.org/wdickerson/64535aff478e8a9fd9d9facccfef8929'>Tooltip on a Multi-line Chart</a>
mit Licensed