Skip to main content
100%

Iris Scatter Plot

✓ Published1🌍 Public
Ccindy203cc
Last edited Nov 20, 2022
Created on Sep 28, 2022
Forked from Hello VizHub

This interactive scatter plot visualizes the classic Iris dataset, letting users compare any two of its four measurements (sepal length, sepal width, petal length, petal width) via dropdown menus. Points are colored and grouped by the three Iris species, with a legend identifying each. The chart renders as an SVG using D3 v5, with axis labels and tick marks styled for readability. On initial load and whenever a new column is selected, the circles animate from the center to their positions using a two-second `transition` with staggered delays. The code leverages `d3.csv` for data loading, `scaleLinear` for positioning, and `axisBottom`/`axisLeft` for the axes.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes