Skip to main content
100%

Line Chart with Multiple Lines

✓ Published1🌍 Public
CCarloWK1202
Last edited Aug 5, 2022
Created on Aug 5, 2022

This example shows the temperature in five cities over a week, with each city as a separate smoothed line and a categorical color legend identifying them. The lines are plotted using D3 v5’s `line` generator with `curveBasis`, and the axes are built with `axisBottom` and `axisLeft`. Data is loaded from a CSV via `csv`, nested by city using `nest`, and rendered as SVG paths with a `mix-blend-mode` for overlapping strokes.

AI-generated description

Temperature in San Fransico Line Chart

MIT Licensed

Similar vizzes