Skip to main content
100%

Dynamic Charts

✓ Published1🌍 Public
AAnupJoseph
Last edited Jul 3, 2021
Created on Jul 2, 2021
Forked from Scatter Plot

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 description

A scatterplot with Towards Reusable Charts patterns

MIT Licensed

Similar vizzes