Skip to main content
100%

Fork of Line Chart with Multiple Lines

✓ Published0🌍 Public
Lleahfurn
Last edited Mar 10, 2021
Created on Mar 10, 2021

This line chart displays one week of temperature data (in Celsius) for cities worldwide, sourced from Data Canvas - Sense Your City. Each city appears as a smoothed colored line, with an ordinal color scale and legend ordering cities by their final temperature values. The visualization uses d3.csv to load data, d3.nest and d3.scaleOrdinal for grouping and coloring, and d3.line with curveBasis to generate the SVG paths. Axis labels and a title are rendered with d3.axisBottom and d3.axisLeft, while a custom colorLegend module draws the legend circles and 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