Skip to main content
100%

ICE 7: Reusable D3 Scatter Plot

✓ Published2🌍 Public
PPYATA SHARAN
Last edited Mar 13, 2023
Created on Mar 12, 2023

This interactive scatter plot visualizes the Iris dataset, mapping petal width and sepal length for three flower species distinguished by color. The visualization animates through different x-axis dimensions—petal width, sepal width, petal length, and sepal length—cycling every 1.5 seconds while updating axis labels. Built with D3 v6, it uses `scaleLinear`, `axisBottom`, `axisLeft`, and a reusable `scatterPlot` function to generate SVG circles and legends. Data loads from a CSV URL via D3’s `csv` method with automatic type parsing.

AI-generated description
MIT Licensed

Similar vizzes