Line Chart with Multiple Lines
This line chart displays one week of temperature data in degrees Celsius for cities worldwide, sourced from Data Canvas - Sense Your City. It visualizes temperature trends over time, with each city represented by a distinct colored line and a color legend showing city names. The visualization uses d3.scaleTime, d3.scaleLinear, and d3.scaleOrdinal for scales, d3.line with curveBasis for path generation, and d3.nest to group data by city. Axes are rendered with d3.axisBottom and d3.axisLeft, while a custom colorLegend function handles the legend. The chart is drawn as SVG using d3 v5.