Reusable D3 Scatter Plot with IRIS Data
✓ Published0🌍 Public
This example presents a reusable scatter plot of the Iris dataset, cycling through four attribute pairs every two seconds. It renders SVG symbols whose shapes encode the flower species, with axes updating to reflect the current dimensions being compared. Built with D3 v6, the visualization uses `scaleLinear`, `scaleOrdinal`, `symbol` for mark generation, and `axisBottom`/`axisLeft` for scales. Data is loaded via `csv` from a GitHub gist, while a `setInterval` loop reconfigures the plot’s accessor functions to animate between variable combinations.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed