Skip to main content
100%

Line chart with Multiple Lines

✓ Published1🌍 Public
YYedrup
Last edited Mar 27, 2020
Created on Mar 27, 2020

This example visualizes a week of temperature readings from multiple cities around the world as a multi-line chart. The visualization uses D3 v5 to render SVG paths, with color distinguishing each city via a categorical color scale. Temperature data is loaded from a CSV, and axes are drawn using D3’s `axisLeft` and `axisBottom` functions. A legend, built with a custom `colorLegend` module, maps each color to its city. The lines use a basis curve and a multiply blend mode to handle overlapping strokes.

AI-generated description
MIT Licensed

Similar vizzes