🌍 Public
Viewing a saved revision (read-only)
53aeea18f3b646efb82114c21f2c4bab
Scatter Plot with colors
This scatter plot displays the Iris Dataset, showing the relationship between petal length and sepal width, with dots colored by species. The visualization loads data asynchronously with `d3.csv` inside a React hook, then renders SVG circles through React components. Scales use `d3.scaleLinear` for both axes and `d3.scaleOrdinal` for categorical colors. Axis components generate ticks and labels using D3’s `scale.ticks()` method, while formatted numbers come from `d3.format`.
AI-generated descriptionA scatter plot of The Iris Dataset.