Skip to main content
100%

ICE-7 Reusable scatter plot

✓ Published0🌍 Public
IIsabella Jaya Rani C
Last edited Mar 13, 2023
Created on Mar 13, 2023
Forked from HTML Starter

This example shows the Iris dataset as an animated scatter plot of petal width against sepal length, cycling through different measurement columns every two seconds. Each point uses a distinct symbol from D3’s `symbol` generator based on species, with alternating green and gold fills, and axes labeled directly in the SVG. The visualization relies on a reusable `scatterPlot` function built with D3 scales (`scaleLinear`, `scaleOrdinal`), axis components (`axisLeft`, `axisBottom`), and a `setInterval` loop that updates the x-value mapping, re-rendering the chart via `svg.call(plot)`.

AI-generated description

Creating a reusable scatter plot for the Iris Data.

MIT Licensed

Similar vizzes