Skip to main content
100%

ICE-7 (Reusable D3 Scatter Plot)

✓ Published1🌍 Public
AAnjan Shrestha
Last edited Mar 28, 2022
Created on Mar 22, 2022

This example presents an animated scatter plot of the Iris dataset using a reusable D3 module. It shows how petal width and sepal length correlate across iris species, with points colored green, blue, or black by species. The visualization cycles through different measurement pairs on the x-axis every two seconds using `setInterval`. It leverages D3 v6 APIs including `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and `selectAll`, rendering as SVG circles with radii set by the `.radius()` method.

AI-generated description
MIT Licensed

Similar vizzes