Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
Ttejaswikalluri05
Last edited Mar 27, 2022
Created on Mar 27, 2022

This example presents an animated scatter plot of the Iris Dataset, cycling through different floral measurements every two seconds. The visualization uses D3 v6 to render SVG circles, with a reusable chart module (`scatterPlot`) that updates scales and axes dynamically. Data is loaded via `d3.csv` from a GitHub Gist, and species are color-coded using `d3.scaleOrdinal`. Explicit `setInterval` calls re-invoke the chart with new x-value columns, while axes are redrawn with `d3.axisLeft` and `d3.axisBottom`.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes