Line Chart with Multiple Lines
✓ Published0🌍 Public
This visualization displays one week of temperature data in degrees Celsius for cities worldwide, sourced from the Data Canvas - Sense Your City project. The multi-line chart plots temperature over time, with each city represented by a distinct colored line and a color legend identifying each location. Built with D3 v5, the code uses d3.nest to group data by city, d3.scaleTime and d3.scaleLinear for axes, and d3.line with curveBasis to generate smooth paths. Custom axis labels, gridlines, and a title frame the SVG rendering.
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