🌍 Public
Viewing a saved revision (read-only)
26f7f8494cb547aabd9130ed3d4ee4f0
Scatter Plot
This scatter plot displays the relationship between petal length and sepal width from the Iris dataset, with each point representing a flower sample. The visualization is rendered as an SVG using React components that leverage D3 v7 utilities for data loading and scaling. The code uses `scaleLinear` from D3 for both axes, `extent` to compute the domain from the data, and `csv` to parse the remote data source. Axis labels and tick marks are generated programmatically through reusable React components.
AI-generated descriptionA program that loads in some data using D3 utilities, and uses React state to keep track of the data.