Dynamic Charts
✓ Published1🌍 Public
This example shows an animated scatterplot of the Iris dataset, cycling through the four numeric columns as the x-axis every 500 milliseconds. The code uses D3 v6 with a reusable charts pattern, where the `scatterPlot` function configures scales, axes, and circle marks. The `xValue` accessor updates dynamically, and D3 transitions animate the circles’ radius and the x-axis over 1.5 seconds per cycle. The plot renders as SVG, sizing to the full window, with colors mapping species via an ordinal scale.
AI-generated descriptionA scatterplot with Towards Reusable Charts patterns
MIT Licensed