🌍 Public
Viewing a saved revision (read-only)
79906ee1631442e9890a59b4187c0323
Fork of Line Chart with Multiple Lines (Log)
BBKirst3
Last edited Mar 4, 2021
Created on Mar 4, 2021
Forked from Line Chart with Multiple Lines (Square Root)
This fork of a line chart visualizes one week of temperature readings in cities worldwide, sourced from the Data Canvas - Sense Your City project. The chart uses `d3.scaleLog` for the temperature axis and `d3.scaleTime` for time, with SVG rendering via D3 v5. A legend is rendered with a `colorLegend` function, and circles with value labels are added every 10th data point for Rio de Janeiro. The code nests data by city using `d3.nest` and draws smooth lines with `d3.line` and `d3.curveBasis`.
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.