๐ Public
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.
MIT Licensed
Comments
Sign in to join the discussion.