Working with Time
✓ Published1🌍 Public
This example visualizes a week of temperature readings in San Francisco as a smooth line chart, with circular marks highlighting each data point and tooltips revealing the exact timestamp. It uses React to manage component state and render the SVG, while D3 v5 utilities handle data loading, scales, and shape generation. The data is fetched from a CSV file using `d3.csv`, then mapped through `scaleTime` and `scaleLinear` to position points along the time and temperature axes. Curves are drawn with `d3.line` and the `curveNatural` interpolation, and custom React components encapsulate the axes and marks.
AI-generated descriptionA program that loads in some data about iris flowers using D3 utilities, and uses React state to keep track of the data.
MIT Licensed