Skip to main content
100%

Fork of Reusable D3 Scatter Plot by Arefa Patwary

✓ Published0🌍 Public
AArefa Patwary
Last edited Mar 28, 2022
Created on Mar 28, 2022

This fork of a reusable D3 scatter plot visualizes the Iris dataset, mapping petal width against sepal length for each flower sample. The code uses `d3.csv` to load the data and `d3.scaleOrdinal` to color marks by species, with SVG circles rendered via `selection.join`. A legend identifies the three species. The plot animates every two seconds by cycling the x-axis variable through petal width, sepal width, petal length, and sepal length using `setInterval`, updating the axes with `axisLeft` and `axisBottom`.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes