Skip to main content
100%

Selecting a Year on a Line Chart

✓ Published0🌍 Public
SSuman Choudhary
Last edited Nov 23, 2020
Created on Nov 23, 2020

This interactive line chart displays population over time for different world regions, with a vertical line marking the currently selected year. Users can hover anywhere on the chart to update the selection and the line position. Built with D3 v5, it uses `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, and `line` with `curveBasis`, plus `nest` for grouping data by region. The visualization renders as SVG and loads UN population estimates from CSV files, using `mouse` events to trigger selection updates.

AI-generated description
MIT Licensed

Similar vizzes