🌍 Public
Viewing a saved revision (read-only)
03d8190eaf164a58990d865de0bf1e78
Fork of Line Chart with Multiple Lines
This line chart visualizes one week of temperature data in degrees Celsius for cities worldwide, sourced from the Data Canvas "Sense Your City" project. It uses `d3.scaleTime` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.scaleOrdinal` with a categorical color scheme to distinguish cities. Curves are generated with `d3.line` and `d3.curveBasis`, while a custom `colorLegend` function adds an interactive legend. The SVG rendering relies on `axisBottom` and `axisLeft` for gridlines, with nested data grouped via `d3.nest`.
AI-generated descriptionThis line chart shows one week of temperature (in degrees Celcius) in cities around the world. The data comes from Data Canvas - Sense Your City.