26 - line chart w/ multiple lines - dataviz 2018
✓ Published1🌍 Public
Zzach b.
Last edited Jan 12, 2022
Created on Jan 12, 2022
Forked from 11.b - sanfran temp line chart - dataviz 2018
A multi-line chart displays a week of temperature readings across multiple cities, with each city drawn as a distinct colored path using smooth curved lines. The visualization sorts city series by their final temperature value in descending order and includes a color legend. Built with D3 v5.6 and SVG, the code uses `d3.nest` for data grouping, `d3.line` with `curveBasis`, and scales for time and temperature axes. Data comes from a CSV file loaded via `d3.csv`.
AI-generated descriptiondatraviz 2018 #26 - line chart w/ multiple lines
--d3.nest was replaced with d3.group and d3.rollup in v6.0
(src).
so i'll be using v5.6.0 like the course example here.
MIT Licensed