Skip to main content
100%

Fork of Stylized Line Chart

✓ Published0🌍 Public
DDavid Brum Soares
Last edited Jul 24, 2024
Created on Jul 24, 2024

This example uses React and D3 v7 to render a stylized line chart of weekly temperature data for San Francisco, sourced from the Data Canvas Sense Your City dataset. The visualization plots temperature over time using a smooth natural curve, generated with D3’s `line()` and `curveNatural` helper, with axes constructed from `scaleTime` and `scaleLinear`. Custom React components for the bottom and left axes render tick marks and labels, while the SVG path is drawn with a teal stroke and rounded line caps, set via CSS classes.

AI-generated description
MIT Licensed

Similar vizzes