Danil Selecting a Year on Line Chart
✓ Published0🌍 Public
This line chart shows population trends over time for global regions, with a vertical black line marking the currently selected year and circles highlighting data points at that year. Users can hover over the chart to update the selected year, which re-renders the visualization using D3’s scaleTime, scaleLinear, line generator with curveBasis, and an axis with custom tick formatting. Data comes from UN population estimates (1950–2014) combined with medium-variant projections (2015–2100), processed via nest() and loaded through csv(). The SVG includes a color legend and styled grid lines.
AI-generated descriptionMIT Licensed