Skip to main content
100%

d3 react Line Chart

✓ Published0🌍 Public
IIsar Ramses
Last edited Jul 7, 2021
Created on Jul 7, 2021

This example shows a line chart of weekly temperature readings over time, using the Data Canvas Sense Your City dataset. The chart renders an SVG path with a natural curve, displaying temperature trends across the week. React components encapsulate the axes and marks, while d3.scaleTime and d3.scaleLinear map the data to screen coordinates. The visualization uses d3.line with curveNatural for the path, d3.csv for data loading, and d3.timeFormat for the time axis labels.

AI-generated description
MIT Licensed

Similar vizzes