Skip to main content
100%

Line chart with multiple lines

✓ Published1🌍 Public
LLongYuu
Last edited Nov 29, 2020
Created on Nov 28, 2020

This line chart displays one week of temperature data for multiple cities from the Data Canvas - Sense Your City dataset, using a distinct color for each city’s time series. The d3.v5 code employs `d3.line` with `curveBasis` to generate smooth SVG paths, `d3.scaleTime` and `d3.scaleLinear` for axes, and `d3.nest` to group by city. A custom color legend renders using `d3.scaleOrdinal` with `schemeCategory10`, while axis labels and gridlines are styled via CSS.

AI-generated description

This Line Chart shows one week of temperature (in degrees Celcius) in San Francisco. The data comes from Data Canvas - Sense your City.

MIT Licensed

Similar vizzes