Skip to main content
100%

Working with Time (Line Chart)

✓ Published1🌍 Public
OOscar
Last edited Jan 25, 2026
Created on Jan 24, 2026

A line chart displays temperature measurements over time, using a smooth curve to connect data points from a CSV file of San Francisco weekly temperatures. The visualization renders as an SVG, with React managing the component structure and D3 v5 handling scales and axes—specifically `scaleTime` for the x-axis and `scaleLinear` for temperature. The `line` generator with `curveNatural` draws the path, while custom axis components generate ticks and labels, and hover tooltips reveal exact time values for each point.

AI-generated description
MIT Licensed

Similar vizzes