🌍 Public
Worling with time
This visualization plots the weekly temperature of San Francisco over time, using a scatterplot with circles positioned by a time-scaled x-axis and a linear-scaled y-axis. The React app loads the data with the D3 `csv` and `scaleTime` utilities, while `AxisBottom` and `AxisLeft` render SVG grid lines and tick labels. The circles’ tooltips display the day of the week via a `timeFormat` function. Styling is applied through CSS classes on the SVG marks and axes.
AI-generated descriptionA program that loads in some data using D3 utilities, and uses React state to keep track of the data.
Plotting the SF temeprature dataset
MIT Licensed
Comments
Sign in to join the discussion.