Skip to main content
100%

Working With Time

✓ Published1🌍 Public
Rrayking99
Last edited Jun 10, 2021
Created on Jun 10, 2021

This example shows a scatter plot of temperature readings over the course of a week, using a time-based x-axis and a linear y-axis for temperature. The data is loaded from a CSV file containing timestamps and temperatures for San Francisco, fetched via the `csv` function from `d3`. The visualization uses `d3.scaleTime` and `d3.scaleLinear` to map data to SVG coordinates, with React components rendering the axes and circular marks. Each point includes a tooltip showing the corresponding day of the week, generated with `d3.timeFormat`.

AI-generated description
MIT Licensed

Similar vizzes