Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

test_d3_multilinechart

Public visualization

Viewing a saved revision (read-only)

8b43ed658c8d420b80df1f6adc755b85

test_d3_multilinechart

0 stars0🌍 Public
Ssameer1986
Last edited Mar 8, 2021
Created on Mar 8, 2021

This example shows temperature readings from multiple cities over one week, using smooth curved lines to compare trends. The visualization renders as an SVG with D3 v5, using `d3.scaleTime` and `d3.scaleLinear` for axes, `d3.line` with `curveBasis` for path generation, and `d3.nest` to group data by city. A custom color legend component is imported from a separate module, while data loads from a CSV containing timestamps and temperatures.

AI-generated description

A demonstration of how to start using D3 version 6.