Skip to main content
100%

Line Chart with Multiple Lines

✓ Published0🌍 Public
JJef
Last edited Jun 29, 2020
Created on Jun 29, 2020

This line chart displays one week of temperature data in degrees Celsius across multiple cities. It uses d3.csv to load the Data Canvas - Sense Your City dataset, with d3.scaleTime and d3.scaleLinear mapping timestamps and temperatures. The d3.line generator with curveBasis creates smooth paths colored via d3.scaleOrdinal and schemeCategory10. A custom colorLegend function renders interactive city labels, while the axis labels and title are positioned within an SVG of 960 by 500 pixels.

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