Skip to main content
100%

Reusable_D3_Scatter_Plot

✓ Published1🌍 Public
SShivaKarpe
Last edited Mar 27, 2022
Created on Mar 27, 2022

This animated scatter plot explores the Iris dataset, cycling through different feature combinations on the x-axis every two seconds while the y-axis remains fixed on sepal length. It uses D3 v6’s `scaleLinear`, `axisLeft`, and `axisBottom` to build reusable axes, while circles are colored by species (setosa, versicolor, virginica). The chart is rendered as an SVG with a `setInterval` loop that updates the x-value accessor, demonstrating a reusable chart pattern inspired by Mike Bostock's “Towards Reusable Charts.”

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes