Selecting a Year on a Line Chart
✓ Published0🌍 Public
A line chart displays population trends over time for global regions, with an interactive vertical line marking a selected year. Users hover over the chart to update the selection, which shifts the line and highlights the corresponding data point. The visualization uses d3.line, d3.scaleTime, d3.scaleLinear, and d3.nest to group data from UN population estimates, rendered as SVG paths with a color legend.
AI-generated descriptionD3 course follow along.
MIT Licensed