Skip to main content
100%

Reusable D3 Scatter Plot

✓ Published0🌍 Public
Rreddyakshitha
Last edited Mar 28, 2022
Created on Mar 28, 2022
Forked from HTML Starter

This dynamic scatter plot animates through the Iris dataset, cycling four flower measurements along the x-axis while displaying petal width on the y-axis. Using a reusable D3 module pattern, the visualization updates every second via `setInterval`, with `scaleLinear` and `extent` computing axes, `scaleOrdinal` assigning species colors, and SVG circles redrawn through join operations. Data loads from a GitHub Gist, with axes rendered via `axisLeft` and `axisBottom`. A custom legend indicates species through colored rectangles.

AI-generated description

Reusable Scatter Plot using D3 for IRIS data

MIT Licensed

Similar vizzes