Skip to main content
100%

Melting Data for Multiple Lines

✓ Published3🌍 Public
Iinroadings
Last edited Apr 1, 2020
Created on Mar 24, 2020

This example visualizes COVID-19 death counts over time for seven countries, with each country represented as a colored line and labeled at its final data point. The chart uses a linear time scale for days since the 10th death and a linear scale for death counts, with axes and a color legend rendered by custom D3 functions. The code loads CSV data, processes it, and uses `d3.nest` to group by country, `d3.line` with `curveBasis` for smooth paths, and `d3.scaleOrdinal` for colors. The visualization is rendered as SVG with D3 v5.

AI-generated description
MIT Licensed

Similar vizzes