π Public
Reusable D3 Scatter Plot
This reusable scatter plot visualizes the Iris dataset, mapping sepal and petal measurements to x and y axes while coloring each point by species. Built with D3 v6, it uses `d3.scaleLinear`, `d3.scaleOrdinal`, and `d3.axisBottom`/`d3.axisLeft` to render axes and positioned SVG circles with a custom `scatterPlot()` chart factory. The plot cycles through four measurement combinations every two seconds via `setInterval`, updating the x-axis and circle positions with an animated transition. A static legend identifies the three iris species.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed
Comments
Sign in to join the discussion.