Skip to main content
100%

Line Chart with Multiple Lines

✓ Published1🌍 Public
Ssameer1986
Last edited Mar 9, 2021
Created on Mar 8, 2021
Forked from D3 Starter

This example shows a week of temperature readings for multiple cities, with each city represented as a separate colored line plotted over time. The chart includes a color legend, labeled axes, and a title, with lines sorted by their final temperature values. It uses D3 v5’s `scaleTime`, `scaleLinear`, and `scaleOrdinal` for scales, `line` with `curveBasis` for path generation, and `nest` to group data by city. Temperature data is loaded from a CSV file and rendered as an SVG with axis and legend components.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes