Animated Reusable D3 Scatter Plot
✓ Published0🌍 Public
This example shows a scatter plot using the Iris dataset, with points colored by species. An animation cycles through four flower measurements—petal width, sepal width, petal length, and sepal length—every two seconds. The chart uses a reusable D3 function `scatterPlot` that leverages `d3.scaleLinear`, `d3.scaleOrdinal`, `d3.symbol`, and `d3.axisBottom`/`d3.axisLeft` to render symbols and axes. Rendering uses SVG paths with transitions between data configurations.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed