Viewing a saved revision (read-only)
f75bc875e21e45379361f0b4fb86c2d8
Fork of Line Chart with Multiple Lines
This line chart from the Data Canvas Sense Your City dataset displays one week of temperature readings across multiple global cities, with each city represented by a smooth curve. The visualization groups data by city via `d3.nest()` and renders paths using the `d3.line()` generator with `curveBasis`, colored by `scaleOrdinal(schemeCategory10)`. A reusable colorLegend module appends circles and text labels. Axes use `axisBottom` and `axisLeft` with grid lines, while D3 v5 handles time and linear scales for timestamp and temperature values. The SVG output includes a title and rotated axis labels.
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.