Skip to main content
100%

Line Chart with Multiple Lines

✓ Published0🌍 Public
BBhojarajHG
Last edited Nov 6, 2019
Created on Nov 5, 2019

This line chart displays one week of temperature data for multiple cities, with each city represented by a colored line and a corresponding color legend. The visualization uses d3.scaleTime, d3.scaleLinear, and d3.scaleOrdinal to map time, temperature, and city names, while d3.line with curveBasis generates the smoothed paths. Data is nested by city using d3.nest and sorted by final value. The chart includes labeled axes and a title, rendered as SVG with elements created via d3 selections.

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