Fork of Animated Reusable D3 Scatter Plot
This animated scatter plot displays the classic Iris dataset, cycling through different floral measurements every three seconds to reveal correlations between species attributes. The visualization arranges data points using D3’s `scaleLinear` and `extent` to map sepal and petal dimensions to Cartesian coordinates, with smooth transitions driven by `transition().duration(1000)`. Built with D3 v6, the `scatterPlot` reusable chart component manages SVG circles and axes via `.join()`, while `axisLeft`, `axisBottom`, and `setInterval` orchestrate the periodic dimension swap. The full-window SVG renders 150 flowers with color-coded clusters, demonstrating an iterative, animated approach to exploring multi-dimensional datasets.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.