Skip to main content
100%

Melting Data and Selecting a Year for Multiple Lines

✓ Published0🌍 Public
KKarkG
Last edited Aug 11, 2020
Created on Aug 10, 2020

This visualization shows world population projections for different development regions from 1950 to 2100, with selectable time points. A vertical line marks the currently chosen year, and hovering over the chart updates it, redrawing the multi-line display. The code uses D3 v5 for data binding, scales, axes, and the line generator, with `nest()` to group data by region and `scaleOrdinal` for color assignment. Data comes from the UCI Machine Learning Repository's Auto MPG dataset, which is melted from wide to long format using custom parsing logic.

AI-generated description

This scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set.

MIT Licensed

Similar vizzes