Skip to main content
100%

D3 Line Chart with Multiple Lines

✓ Published0🌍 Public
CCarloGato
Last edited Dec 17, 2019
Created on Dec 17, 2019

This visualization displays temperature trends for multiple cities over time, with a color-coded line for each city and a legend identifying each series. The chart uses a time-scaled x-axis, a linear temperature axis, and a categorical color scale. Built with D3 v5, it employs `scaleTime`, `scaleLinear`, `scaleOrdinal`, and `axisBottom`/`axisLeft` to construct axes. Data is loaded from an external CSV containing city temperature readings, then nested by city using `nest()`, with lines rendered as SVG paths using `lineGenerator` and a basis curve.

AI-generated description
MIT Licensed

Similar vizzes