Skip to main content
100%

Fork of Line Chart with Multiple Lines

✓ Published0🌍 Public
Mmaavwin
Last edited Mar 8, 2021
Created on Mar 8, 2021

This visualization displays a week of temperature measurements from cities worldwide, sourced from the Data Canvas - Sense Your City dataset. It plots multiple lines, one per city, using a basis curve to smooth the temperature trends over time. The chart is built with D3 v5, using `scaleTime` and `scaleLinear` for the axes, `line()` with `curveBasis` for the paths, and `nest()` to group data by city. A color legend is rendered via a custom `colorLegend` component, while axis labels and grid lines are styled with CSS.

AI-generated description

This line chart shows one week of temperature (in degrees Celcius) in cities around the world. The data comes from Data Canvas - Sense Your City.

MIT Licensed

Similar vizzes