Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line with time temperature

Public visualization

Line with time temperature

0 stars2🌍 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

Comments

Sign in to join the discussion.

MIT Licensed