🌍 Public
Viewing a saved revision (read-only)
01471368bd364da6b95920536c4dc8ea
scatter plot
This scatter plot visualizes the Iris dataset, mapping petal length on the x-axis against sepal length on the y-axis for individual flowers. The example uses React with D3 v7 functions like `csv` for data loading, `scaleLinear` for axis scaling, and `extent` to compute domains. Data is rendered as purple SVG circles, with labeled axes and a title added via D3’s `axisBottom` and `axisLeft` methods. The chart is built dynamically within a React component using a `useEffect` hook to fetch and process the data.
AI-generated description