Skip to main content
100%

Fork of Line Chart with Multiple Lines

✓ Published0🌍 Public
DDhanraj Bhosale
Last edited Oct 19, 2022
Created on Oct 19, 2022

This visualization shows a week of temperature readings across multiple global cities, using smooth curved lines to compare trends over time and a color legend to distinguish each city. The data comes from Data Canvas - Sense Your City, plotted on an SVG canvas with D3 v7. It uses `d3.scaleTime`, `d3.scaleLinear`, `d3.scaleOrdinal` with `schemeCategory10`, and `d3.line` with `curveBasis` to generate the paths. Axes are rendered with `d3.axisLeft` and `d3.axisBottom`, while a custom `colorLegend` function maps city names to colors.

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