Skip to main content
100%

Working with time

✓ Published2🌍 Public
LLawrence Liu
Last edited Apr 12, 2022
Created on Apr 11, 2022

This example visualizes temperature over time using an SVG scatterplot, where each circle marks a temperature reading at a specific timestamp. The x-axis uses a time scale to map dates, while the y-axis linearly maps temperature values. The chart includes labeled axes, tick marks, and a tooltip that displays the full date on hover. It is built with React and D3 v5, leveraging `scaleTime`, `scaleLinear`, and `extent` to compute scales, with data loaded from a CSV file containing weekly San Francisco temperature records.

AI-generated description

A scatterplot of temperature over time.

MIT Licensed

Similar vizzes