Skip to main content
100%

Fork of Line Chart with Multiple Lines (Log)

✓ Published0🌍 Public
BBKirst3
Last edited Mar 4, 2021
Created on Mar 4, 2021

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 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