Skip to main content
100%

Fork of Line Chart with Multiple Lines

✓ Published0🌍 Public
Vvivianaaai@qq.com
Last edited Mar 18, 2023
Created on Mar 18, 2023

This visualization shows one week of temperature data in cities around the world, plotted as multiple smoothed lines using temperature over time. Each city is assigned a distinct color, with a color legend on the right and axis labels for time and temperature. The code uses `d3.csv` to load data from the Data Canvas - Sense Your City dataset, then applies `d3.scaleTime`, `d3.scaleLinear`, `d3.scaleOrdinal`, `d3.nest`, and `d3.line` with `curveBasis` to generate the SVG paths. Custom functions handle the color legend and axis styling.

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