Skip to main content
100%

Fork of Stylized Line Chart

✓ Published0🌍 Public
SSanhita Ghsoh
Last edited Jul 17, 2021
Created on Jul 15, 2021

This example visualizes temperature over time as a smooth, stylized line chart, rendered as SVG within a React component. The line uses D3’s `line` and `curveNatural` to create a natural cubic spline through the data points, while temporal and linear scales from D3 handle axis mapping. Axes are drawn using custom React components that generate ticks and gridlines, with the chart styled using the Poppins font and a muted color palette. The data comes from a CSV file of weekly San Francisco temperatures, loaded asynchronously via the `useData` hook and D3’s `csv` parser.

AI-generated description
MIT Licensed

Similar vizzes