Skip to main content
100%

Fork of Selecting a Year on a Line Chart

✓ Published0🌍 Public
Nnikki81140
Last edited Oct 17, 2022
Created on Oct 17, 2022

This line chart visualization displays population trends over time for various world regions. Users can hover over the chart to select a specific year, which triggers a vertical line to appear and updates the visualization accordingly. The chart is built using D3 v5, with the data sourced from UN population estimates. It employs D3’s `scaleTime`, `scaleLinear`, and `nest` functions to manage the time axis, population values, and multiple region groups, rendered as SVG paths.

AI-generated description
MIT Licensed

Similar vizzes