Line Chart with Multiple Lines
✓ Published1🌍 Public
This line chart displays one week of temperature readings in degrees Celsius from multiple cities around the world, using data from Data Canvas - Sense Your City. Each city appears as a separate smooth curve, colored via a categorical scale, with a legend positioned to the right. The visualization is built with D3 v5, using `d3.csv` for data loading, `d3.scaleTime` and `d3.scaleLinear` for axes, `d3.line` with `curveBasis` for path generation, and `d3.nest` to group readings by city. An ordinal color scale assigns distinct hues, and a custom color legend renders circles and labels.
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