Line Chart with Multiple Lines
✓ Published1🌍 Public
This example displays a week of temperature data for multiple cities using an SVG line chart with one line per city, colored via a categorical scale. The chart includes labeled axes, a title, and a color legend positioned to the right. It uses d3.scaleTime and d3.scaleLinear for scaling, d3.axisBottom and d3.axisLeft for axes, d3.line with curveBasis for smooth paths, and d3.group to organize data by city. The data originates from the Data Canvas "Sense Your City" dataset.
AI-generated descriptionMIT Licensed