Skip to main content
100%

Tooltip on a Multi-line Chart - II

✓ Published0🌍 Public
Aandrewcowley
Last edited Aug 31, 2018
Created on Aug 31, 2018

This multi-line chart displays state population trends from 1910 to 2010, with an interactive tooltip that appears when hovering over the chart. Built with D3 v4 and rendered as SVG, the visualization plots four states as colored lines (California, Texas, Michigan, and Elsewhere) and uses a vertical guide line to indicate the selected year. The tooltip lists all states sorted by their population for the hovered year, showing each state's name and population in its corresponding line color. Data is loaded from an external JSON file, and the tooltip updates dynamically as the mouse moves across the chart, with the nearest decennial year snapped to the data.

AI-generated description

forked 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>

forked from <a href='http://bl.ocks.org/andrewcowley/'>andrewcowley</a>'s block: <a href='http://bl.ocks.org/andrewcowley/400c786bbbaf700db3ea51c61274726d'>Tooltip on a Multi-line Chart - I</a>

mit Licensed

Similar vizzes