Skip to main content
100%

Line Chart w/ d3, react

✓ Published1🌍 Public
Ddata-inside
Last edited Nov 19, 2020
Created on Nov 19, 2020

This line chart visualizes weekly temperature data from the Data Canvas Sense Your City dataset, plotting temperature over time. The React component uses d3-scale functions like scaleTime and scaleLinear to map data to SVG coordinates, while d3.line with curveNatural draws the smoothed path. Axis components are custom React elements that render d3 ticks, and the useData hook loads the CSV asynchronously with d3.csv.

AI-generated description
MIT Licensed

Similar vizzes