Skip to main content
100%

ICE-7

✓ Published0🌍 Public
Mmosesimmanuelvemana@my.unt.edu
Last edited Mar 25, 2023
Created on Mar 25, 2023

This interactive scatter plot visualizes the Iris dataset, cycling every two seconds between four flower measurements (petal width, sepal width, petal length, and sepal length) on the x-axis while sepal length remains on the y-axis. Built with D3 v6, it uses `scaleLinear`, `axisLeft`, and `axisBottom` to render axes, and `selectAll` with `join` to update circles smoothly. The reusable `scatterPlot` function, inspired by Mike Bostock's chart conventions, accepts configurable accessors for data, dimensions, and margins. Data loads from a CSV via `d3.csv`, and the animation uses `setInterval` to re-invoke the plot with new column mappings.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes