Skip to main content
100%

Dynamic Charts

✓ Published1🌍 Public
Aalexscott-untitled
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from Reusable Charts

This interactive scatterplot of the Iris flower dataset dynamically cycles the x-axis through different measured attributes (petal width, sepal width, petal length) every two seconds using `setInterval`. The plot, built with D3 v7, uses `scaleLinear`, `axisLeft`, and `axisBottom` to render axes while updating circle positions via the `scatterPlot` function. The visualization shows how the distribution of flower measurements shifts when the independent variable changes, with SVG elements animating smoothly as the scale recalculates.

AI-generated description

A template for a scatterplot

MIT Licensed

Similar vizzes