Skip to main content
100%

Line Chart With Multiple Lines

✓ Published0🌍 Public
JJordan Arnold
Last edited Mar 9, 2021
Created on Mar 9, 2021

This example visualizes San Francisco temperatures over time for multiple cities using a multi-line chart. The visualization employs D3 v5 APIs including `scaleTime`, `scaleLinear`, `axisLeft`, and `axisBottom` to construct the axes and scales. Data is loaded from a CSV file and grouped by city using `nest`, then each line is rendered via the `line` generator with `curveBasis` smoothing. The SVG render includes gridlines, a rotated y-axis label, and a title, all styled through CSS.

AI-generated description
MIT Licensed

Similar vizzes