🌍 Public
Viewing a saved revision (read-only)
3539e6d7a939454b8230fa8593a09177
Working with Time
This example shows a line chart of temperature readings over the course of a week, using a smooth natural curve to connect the data points. The chart plots time on the x-axis with day-of-week labels and temperature on the y-axis. Built with React and D3 v5, it uses `scaleTime` and `scaleLinear` for the scales, `d3.line` with `curveNatural` for the path, and `timeFormat` for axis ticks. Data comes from a CSV of San Francisco sensor temperatures loaded via `d3.csv`.
AI-generated descriptionA line chart of temperatures over time.