Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Selecting a Year on a Line Chart

Public visualization

Viewing a saved revision (read-only)

537a071f9a8b442a94ff26e6817a5a78

Fork of Selecting a Year on a Line Chart

0 stars0🌍 Public
Vvivianaaai@qq.com
Last edited Mar 18, 2023
Created on Mar 18, 2023

This visualization displays population trends over time for multiple world regions, using a line chart where each colored line represents a different region. Users can hover over the chart to select a specific year, which is marked by a vertical line and updates the visualization accordingly. The implementation uses D3 v5 with SVG rendering, employing scales like `scaleTime` and `scaleLinear`, the `line` generator with `curveBasis`, and a `nest` operation to group data by region. Data comes from UN population estimates and medium variant projections, processed with the `csv` loader.

AI-generated description