Skip to main content
100%

Fork of Line Chart with Multiple Lines

✓ Published0🌍 Public
YYasara Peiris
Last edited Sep 21, 2021
Created on Sep 21, 2021

This visualization shows one week of temperature data from cities worldwide, with each city represented by a distinct colored line on a time-series chart. The lines are smoothed using `curveBasis`, and the legend displays city names in the order of their final temperature values. The chart uses d3's `scaleTime`, `scaleLinear`, `scaleOrdinal`, and `nest` to structure the data, with axes rendered via `axisBottom` and `axisLeft`. The color legend is built through a reusable function that appends circles and text. The data comes from Data Canvas - Sense Your City.

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