Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Melting Data for Multiple Lines

Public visualization

Melting Data for Multiple Lines

0 stars1🌍 Public
Iinroadings
Last edited Mar 31, 2020
Created on Mar 28, 2020

This example shows COVID-19 death counts for multiple countries over time, with each country represented as a colored line and labeled at its final value. The visualization uses a line generator with a basis curve, along with nested data grouping to separate countries. It displays the data on linear scales for both axes and includes a color legend in the corner. The code imports and processes data from two CSV files, filtering and merging them to build the dataset, and renders the chart as an SVG using D3 v5 APIs like `d3.nest`, `d3.line`, and `d3.axisLeft`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed