Skip to main content
100%

ICE7_Reusable Scatter Plot

✓ Published0🌍 Public
PPbarring
Last edited Mar 23, 2022
Created on Mar 23, 2022

This reusable scatter plot displays the Iris Dataset, cycling through four variables (petal width, sepal width, petal length, sepal length) on the x-axis every two seconds while keeping sepal length on the y-axis. Built with D3 v6, it uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to render axes, with `selectAll` and `join` for idempotent circle updates. The visualization animates via `setInterval`, calling the chart’s setter functions to update the x-value mapping. SVG rendering fills the browser window, with data loaded from a CSV gist.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes