Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Melting Data for Multiple Lines

Public visualization

Viewing a saved revision (read-only)

d77bd2c228494373bca837c3c637d373

Melting Data for Multiple Lines

0 stars2๐ŸŒ Public
Iinroadings
Last edited Apr 2, 2020
Created on Apr 1, 2020

This example animates cumulative confirmed COVID-19 cases across multiple countries, plotting each country as a colored line over days since its first confirmed case. The animation progressively reveals data up to day 92, with circles and labels marking the latest value of each line. Built with D3 v5, it uses `nest()` to group data by country, `scaleLinear` for axes, `line` with `curveBasis` for smooth paths, and transitions to update paths over time. The data comes from two CSV files processed via `loadAndProcessData`.

AI-generated description