Skip to main content
100%

City Temperatures - Line Chart

✓ Published1🌍 Public
Jjulesgentry
Last edited Aug 2, 2022
Created on Aug 2, 2022

This line chart visualizes weekly temperature fluctuations for a city, using a smooth natural curve to connect data points across time. The SVG rendering, built with React and D3 v5, employs `scaleTime` and `scaleLinear` to map timestamps and temperature values, with individual temperature readings highlighted as orange circles. The chart includes labeled axes for time and temperature, and the data is loaded from a CSV file using D3’s `csv` parser. D3’s `line` generator with `curveNatural` creates the fluid path, while custom `AxisBottom` and `AxisLeft` components render the tick marks and labels.

AI-generated description
MIT Licensed

Similar vizzes