Fork of Line Chart with Multiple Lines
✓ Published0🌍 Public
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 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