Skip to main content
100%

Fork of Line Chart with Multiple Lines

✓ Published1🌍 Public
PPiotr Paszek
Last edited May 13, 2021
Created on May 13, 2021

This visualization shows a week of temperature data for cities around the world, with each city represented by a colored line across a time axis. The chart uses D3 v5’s `scaleTime`, `scaleLinear`, and `scaleOrdinal` to map timestamps, temperature values, and city names to visual channels. Lines are drawn with `d3.line` and `curveBasis`, while an axis with gridlines and a custom `colorLegend` function display scales and labels. The data, sourced from Data Canvas - Sense Your City, is loaded via `d3.csv` and rendered as SVG.

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