Skip to main content
100%

Fork of Line Chart with Multiple Lines

✓ Published0🌍 Public
Yyinghao11
Last edited Dec 13, 2021
Created on Dec 13, 2021

This line chart displays one week of temperature data from cities around the world, sourced from Data Canvas - Sense Your City. Each city appears as a distinct colored line, with a legend showing city names, and lines are sorted by their final temperature value. The chart includes labeled axes for time and temperature, plus a title, using a two-dimensional SVG rendering. The implementation uses d3.csv for data loading, d3.nest for grouping, d3.scaleTime, d3.scaleLinear, and d3.scaleOrdinal for scales, d3.line with curveBasis for path generation, axisLeft and axisBottom for axes, and a custom colorLegend function.

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