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)

24d4864373b742d1bcc6371e351da15d

Fork of Selecting a Year on a Line Chart

0 stars0🌍 Public
RRaghureddy4545
Last edited Jan 5, 2023
Created on Jan 5, 2023

This interactive line chart displays population trends over time by region, with a movable vertical line and circular markers that highlight the selected year across all series. Users click or drag on the chart to change the selection, updating the visualization in real time. The visualization uses the D3 v5 modules `nest`, `scaleTime`, `scaleLinear`, and `scaleOrdinal` to structure and scale the data, while `axisBottom`, `axisLeft`, and `line` handle axes and path generation. Population data comes from UN estimates (1950–2014) and medium-variant projections (2015–2100), rendered as SVG with semi-transparent strokes.

AI-generated description