Skip to main content
100%

Fork of Selecting a Year on a Line Chart

✓ Published0🌍 Public
Ddnt.ngoctu@gmail.com
Last edited Jun 20, 2024
Created on Jun 20, 2024

This interactive line chart shows population trends over time for world regions projected through 2100, using data from UN population estimates. Users navigate by mousemove events that call `setSelectedYear` to update a highlighted vertical line, while a color legend identifies each region. The visualization uses d3.v5 with `scaleTime`, `scaleLinear`, `scaleOrdinal`, `axisBottom`, `axisLeft`, `line` with `curveBasis`, `nest`, `mouse`, and SVG rendering. Colors come from `schemeCategory10`, and the chart adapts via a state-driven `render` function.

AI-generated description
MIT Licensed

Similar vizzes