Skip to main content
100%

Line with time temperature

✓ Published2🌍 Public
JJonas Carvalho
Last edited Apr 12, 2021
Created on Apr 12, 2021

This example displays a line chart of temperature over time, using a smooth natural curve to connect weekly data points. The chart includes labeled axes for time and temperature, with a clean SVG rendering that emphasizes the trend. It uses React to structure the visualization and D3 v6 functions like `scaleTime`, `scaleLinear`, and `line().curve(curveNatural)` for data mapping and path generation. Data comes from a CSV file of San Francisco weekly temperatures, loaded with `d3.csv`.

AI-generated description
MIT Licensed

Similar vizzes