Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
This example presents an animated scatter plot of the Iris dataset, cycling through different x-axis dimensions (petal width, sepal width, petal length, sepal length) every two seconds while keeping sepal length on the y-axis. It uses D3 v6 APIs including `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and `selectAll().join()` to render SVG circles and update axes. The reusable chart module, defined via a closure with getter-setter methods, is called with `.call(plot)` to re-render the visualization.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed