Skip to main content
100%

Idempotent D3 Scatter Plot

✓ Published0🌍 Public
JJuanmaBV
Last edited Oct 27, 2022
Created on Oct 27, 2022

This scatter plot visualizes the Iris dataset with SVG circles representing flowers, animated via `transition()`. A reusable chart function built with D3 v6 scales axes using `scaleLinear` and `extent`, rendering axes with `axisLeft` and `axisBottom`. Clicking the button cycles the x-axis variable among petal width, sepal width, petal length, and sepal length, updating the plot idempotently through `selection.call()`. Data loads from a remote CSV, with parsing for numeric values.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes