Skip to main content
100%

Melting Data for Multiple Lines

✓ Published2🌍 Public
Vvans01
Last edited Apr 3, 2020
Created on Apr 3, 2020

This example visualizes COVID-19 confirmed cases across several countries using multiple animated line charts. The visualization uses D3.js v5 with SVG rendering to display data from CSV files, showing how cases grow over days since the outbreak began. The implementation employs D3 scales for linear and time axes, the `nest()` function to group data by country, and `line()` with `curveBasis` to generate smooth paths. A color legend and animated transitions update the lines dynamically, while a custom `yValue` function adds random variance to China’s data for demonstration purposes.

AI-generated description
MIT Licensed

Similar vizzes