Skip to main content
100%

Fork of Line Chart with Multiple Lines

✓ Published0🌍 Public
Bbstillword
Last edited Apr 17, 2022
Created on Apr 17, 2022

This example visualizes one week of temperature data for cities worldwide, using D3 v5 to draw multiple smoothed line paths with a categorical color scale and an interactive color legend. The chart plots timestamp against temperature on linear and time-based axes, and sorts the city series by their final values using `d3.nest` and `d3.descending`. Data originates from the Data Canvas Sense Your City project, and the SVG rendering uses D3's `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, `line`, and `curveBasis` APIs.

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