Skip to main content
100%

Fork of Line Chart with Multiple Lines

✓ Published0🌍 Public
AAlba San Martín
Last edited Sep 15, 2021
Created on Sep 15, 2021

This example displays a week of temperature data from cities worldwide, sourced from Data Canvas - Sense Your City, as a multi-line chart with a color legend identifying each city. It uses d3.csv to load the data, d3.nest to group by city, and d3.scaleTime and d3.scaleLinear for axes, with lines generated via d3.line and curveBasis. The chart includes gridlines, axis labels, and a custom colorLegend module, all rendered as SVG.

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