Skip to main content
100%

Scatter Plot with Iris DataSet

✓ Published0🌍 Public
SSharon Lin
Last edited Sep 15, 2024
Created on Sep 15, 2024

This interactive scatter plot displays the classic Iris dataset, with measurements plotted as colored circles representing three species. Users select which flower attributes appear on the X and Y axes through dropdown menus, automatically triggering an animated transition of the data points to their new positions. The visualization is built with D3 v7, using `d3.select`, `d3.scaleLinear`, `d3.extent`, and `d3.axisBottom`/`d3.axisLeft` to render SVG axes and circles, with a 1-second `transition()` animating the changes. The code applies distinct fill colors for setosa, versicolor, and virginica classes.

AI-generated description
MIT Licensed

Similar vizzes