Skip to main content
100%

Reusable Scatter Plot for Iris Dataset ICE-7

✓ Published1🌍 Public
KKrishnaPriyaKurra
Last edited Mar 28, 2022
Created on Mar 27, 2022

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 description

A reusable scatter plot inspired by Towards Reusable Charts. Shows the Iris Dataset.

MIT Licensed

Similar vizzes