Skip to main content
100%

Animated Reusable D3 Scatter Plot

✓ Published2🌍 Public
Nnim@brejnholt.dk
Last edited Feb 5, 2024
Created on Feb 2, 2024

This example animates a reusable D3 scatter plot that cycles through different iris flower measurements every 3 seconds. It uses D3’s `scaleLinear`, `axisLeft`, `axisBottom`, and the `transition` API to smoothly move circles and axes between states. The code fetches CSV data from a GitHub gist and renders SVG circles with staggered enter/update transitions, changing the x-axis mapping among petal width, sepal width, petal length, and sepal length.

AI-generated description
MIT Licensed

Similar vizzes