Skip to main content
100%

Stylized Line Chart

✓ Published321🌍 Public
CCurran Kelleher
Last edited Jan 3, 2024
Created on Sep 19, 2019
Forked from Working with Time

This stylized line chart visualizes weekly temperature data from San Francisco as a smooth, flowing curve over time. The chart uses React to render SVG elements, with D3’s `scaleTime` and `scaleLinear` mapping timestamps and temperature values to coordinates, and the `line` generator with `curveNatural` for smooth interpolation. React component helpers `AxisBottom` and `AxisLeft` draw formatted tick marks and labels, while the custom `useData` hook fetches the CSV via `d3.csv`. The minimalist design omits data points, emphasizing the trend with a bold teal stroke.

AI-generated description
MIT Licensed

Similar vizzes