Skip to main content
100%

Line Chart with Multiple Lines

✓ Published0🌍 Public
NNkwachi Abel
Last edited Jun 5, 2022
Created on Jun 4, 2022

This example displays temperature readings from multiple cities over a week, with each city represented by a colored line and a corresponding legend. The chart uses d3.scaleTime, d3.scaleLinear, and d3.scaleOrdinal to map time, temperature, and city names, while d3.line with curveBasis smooths the paths. Data is loaded via d3.csv from an external dataset, and the SVG is rendered with axes, grid lines, and labels styled through CSS.

AI-generated description
MIT Licensed

Similar vizzes