Fork of Reusable D3 Scatter Plot - MBB
✓ Published0🌍 Public
This example visualizes the Iris dataset as an animated scatter plot, cycling through four chemical attributes—citric acid, sulphates, residual sugar, and alcohol—on the x-axis while keeping citric acid fixed on the y-axis. It shows how different feature pairs correlate across the dataset’s samples. The visualization uses D3.js v6 with `scaleLinear` and `extent` for scales, `axisLeft` and `axisBottom` for axes, and a reusable chart pattern via `scatterPlot()`. A `setInterval` triggers updates every two seconds, rebinding the x-value accessor and redrawing the SVG circles to animate the transitions.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed