Skip to main content
100%

animated transition of Reusable D3 Scatter Plot

✓ Published0🌍 Public
KKerim
Last edited Nov 14, 2022
Created on Nov 14, 2022

This example demonstrates an animated scatter plot of the Iris dataset, with sepal length and petal width mapped to the x and y axes. The visualization uses D3 version 6.7.0 and follows the reusable chart pattern, constructing a scatter plot via the `scatterPlot` function. SVG circles represent data points, positioned using `scaleLinear` with domains from `extent`, while `axisLeft` and `axisBottom` generate the axes. Although the code includes commented-out logic for cycling through columns, the active script renders a single static view of the data with no animation.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes