🌍 Public
Viewing a saved revision (read-only)
48861c517084439297b92033dbc8c680
Fork of Fork of Fork of Line Chart with Multiple Lines
JJaswitha09
Last edited Nov 28, 2021
Created on Nov 28, 2021
Forked from Fork of Fork of Line Chart with Multiple Lines
A multi-line chart displays one week of temperature data from Data Canvas - Sense Your City, plotting temperatures in Celsius over time for multiple cities. Each city appears as a separate smoothed line, colored via d3.scaleOrdinal with schemeCategory10 and sorted by final temperature. The visualization uses d3.line with curveBasis, d3.scaleTime, d3.scaleLinear, and d3.nest to structure the data. A color legend built with a custom function, axis labels, and gridlines rendered as SVG complete the chart.
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.