Reusable Scatter Plot for Iris Dataset ICE-7
✓ Published1🌍 Public
This reusable scatter plot visualizes the Iris dataset, mapping petal width and sepal length for three species of iris flowers distinguished by color. Built with D3 v6, it uses a custom `scatterPlot` function that leverages `scaleLinear`, `axisLeft`, and `axisBottom` to render the SVG axes and circles. The chart also displays a color-coded legend and accepts configurable margins and radius. Though the code defines an animation-less SVG rendering, it prepares nested shapes using `rx` and `ry` attributes, suggesting potential ellipse variation. The dataset is loaded asynchronously via `csv` from a GitHub gist URL.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts. Shows the Iris Dataset.
MIT Licensed