Skip to main content
100%

Fork of Line Chart with Multiple Lines

✓ Published1🌍 Public
BBKirst3
Last edited Mar 4, 2021
Created on Mar 3, 2021

This line chart displays a week of temperature data for cities worldwide, sourced from Data Canvas - Sense Your City. Multiple colored lines represent each city, with a highlight on Rio de Janeiro showing temperature values at regular intervals. The visualization uses d3.scaleTime, d3.scaleLinear, and d3.scaleOrdinal for scales, along with d3.nest to group data by city. A custom colorLegend function renders the legend, while axes are generated using d3.axisBottom and d3.axisLeft. The SVG rendering applies d3.line with curveBasis for smooth paths.

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