Skip to main content
100%

Line Chart with Multiple Lines

✓ Published1🌍 Public
Ccliffng
Last edited Nov 7, 2019
Created on Nov 7, 2019

This line chart visualizes one week of temperature data in degrees Celsius across multiple global cities, sourced from Data Canvas - Sense Your City. The chart displays time on the x-axis and temperature on the y-axis, with each city represented by a distinct colored line using a categorical color scale. The visualization is rendered as an SVG using D3 v5, employing d3.scaleTime, d3.scaleLinear, d3.scaleOrdinal, d3.line with curveBasis, and d3.nest for grouping data by city. A color legend is generated through a custom function that maps city names to their corresponding line colors.

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