Skip to main content
100%

Fork of Line Chart with Multiple Lines

✓ Published0🌍 Public
SSampras Dsouza
Last edited Jun 15, 2022
Created on Jun 15, 2022

This line chart visualizes daily temperatures in Celsius across multiple cities over one week, with each city represented by a distinct colored line. The data originates from the Data Canvas - Sense Your City project, loaded via `d3.csv`. The visualization uses D3 v5’s `scaleTime`, `scaleLinear`, and `scaleOrdinal` for axes and color mapping, with `d3.line` and `curveBasis` to generate smooth paths. A legend, built using a custom `colorLegend` function, identifies city names, while axis labels and a title are added as SVG text.

AI-generated description

This 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

Similar vizzes