Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Selecting a year on a line chart

Public visualization

Selecting a year on a line chart

0 stars0🌍 Public
Pprincit
Last edited May 4, 2020
Created on Mar 31, 2020

This visualization presents population trends over time for world regions using a multi-line chart, with a vertical line marking the currently selected year. Users move the mouse across the chart to change the selected year, which updates the line position. The chart is rendered as SVG using D3 v5, employing scales like `scaleTime` and `scaleLinear`, the `line` generator with `curveBasis`, and nested data via `nest`. A separate color legend maps each region’s line to a categorical color scale.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed