Skip to main content
100%

Line Chart with Multiple Lines

✓ Published0🌍 Public
Sssatabdwi
Last edited Aug 18, 2020
Created on Aug 18, 2020

This line chart displays one week of temperature data in degrees Celsius for cities worldwide, sourced from Data Canvas - Sense Your City. It uses d3.csv to load the dataset, with d3.scaleTime and d3.scaleLinear for the axes, and d3.nest to group readings by city. Multiple lines are rendered using d3.line with a curveBasis interpolation, while d3.scaleOrdinal assigns categorical colors. A custom colorLegend function generates the city legend, and d3.axisBottom and d3.axisLeft create gridlines.

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