Melting Data and Selecting a Year for Multiple Lines
✓ Published0🌍 Public
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 descriptionThis scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set.
MIT Licensed