Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Selecting a Year on a Line Chart

Public visualization

Viewing a saved revision (read-only)

9c926837e3d646e1a1d715be0c33ebe7

Selecting a Year on a Line Chart

0 stars0🌍 Public
CCarloWK1202
Last edited Aug 9, 2022
Created on Aug 9, 2022

This line chart shows population over time for different world regions, with a vertical line marking a selected year. Users can hover over the chart to change the selected year, which adjusts the line's position. The visualization uses D3.js v5 to render SVG elements, including a color legend, axes, and multiple line paths. It also employs D3's scale functions, line generator, and mouse event handling to update the chart dynamically based on the United Nations population dataset.

AI-generated description