Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
This example presents the Iris Dataset as an animated scatter plot, cycling through different x-axis variables every two seconds to reveal relationships between petal and sepal measurements. The reusable chart component, built with D3 v6 functions like `scaleLinear`, `axisBottom`, and `axisLeft`, renders SVG circles colored by species. A `setInterval` drives the animation, updating the x-value mapping and re-calling the plot function. The code follows Mike Bostock’s reusable chart pattern, exposing setter methods for configuration and data binding.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed