Skip to main content
100%

Fork of Animated Reusable D3 Scatter Plot

✓ Published0🌍 Public
FFerronHooi
Last edited Jun 23, 2021
Created on Jun 23, 2021

This example demonstrates a reusable D3 scatter plot that cycles through different attributes of the Iris dataset every three seconds, transitioning the positions of circles and axes with smooth animations. Using the `d3.selection.join` pattern, the chart binds data to circle elements, animating their coordinates via `transition` and staggered delays, while axes update through `axisLeft` and `axisBottom`. The visualization renders in SVG, loads data from a remote CSV file, and relies on the D3 v6 library for scaling with `scaleLinear` and extent calculations.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes