🌍 Public
Viewing a saved revision (read-only)
0e41e7aed7134a0abe80e68f4d4440ef
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.