Skip to main content
100%

Reusable D3 Scatter Plot_Niharika

✓ Published2🌍 Public
NNiharika Reddy Amanaganti
Last edited Mar 26, 2023
Created on Mar 26, 2023
Forked from Hello VizHub

This visualization displays the Iris dataset using an animated scatter plot that cycles through different feature combinations every two seconds. The plot represents each flower species with distinct symbols created through D3's `symbol` generator and `scaleOrdinal` color encoding, with axes updated dynamically via `axisBottom` and `axisLeft`. The reusable `scatterPlot` function leverages D3 v6 scales like `scaleLinear` and `scaleOrdinal` to map sepal and petal measurements, rendering everything as SVG elements that re-bind data on each interval.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

MIT Licensed

Similar vizzes