Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Line Chart with Multiple Lines

Public visualization

Fork of Line Chart with Multiple Lines

0 stars0🌍 Public
JJan Medina
Last edited Nov 29, 2022
Created on Nov 29, 2022

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

Comments

Sign in to join the discussion.

MIT Licensed