Fork of Line Chart with Multiple Lines
This line chart displays one week of temperature data from cities worldwide, sourced from Data Canvas – Sense Your City. Each smoothed line, rendered with d3.line and curveBasis, represents a city’s temperature over time, colored using d3.scaleOrdinal with schemeCategory10. The chart includes axes with grid lines, a title, and a custom color legend. The code uses d3.csv for data loading, d3.nest for grouping by city, and d3.scaleTime for the time axis, rendering in SVG.