Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Line Chart with Multiple Lines

Public visualization

Viewing a saved revision (read-only)

8fba2568e77a4a7ab46b3e61d7f2b5c5

Fork of Fork of Fork of Line Chart with Multiple Lines

0 stars0🌍 Public
Jjwadh
Last edited Feb 21, 2022
Created on Feb 21, 2022

This visualization displays one week of temperature data for cities worldwide, sourced from Data Canvas - Sense Your City. The chart uses d3.scaleTime and d3.scaleLinear for axes, d3.line with curveBasis to draw smoothed temperature trends, and d3.scaleOrdinal with schemeCategory10 to color each city. A custom colorLegend function renders interactive circles and labels, while d3.nest groups data by city and sorting orders lines by final temperature. SVG rendering and d3.axisBottom/axisLeft provide a complete multi-line comparison.

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.