Skip to main content
100%

Following Along Point Scale Animated Scatter Plot with Menus

✓ Published0🌍 Public
PParker-D5
Last edited Oct 11, 2023
Created on Oct 11, 2023

This example shows an interactive scatter plot of the Iris dataset with two dropdown menus for selecting which quantitative or categorical column maps to the x and y axes. Animated transitions via `d3.transition` and `selection.join` move circles smoothly between positions, while axes update with a default `axisBottom` and `axisLeft` scale. The code uses d3.v6 with `scaleLinear` and `scalePoint`, rendering in SVG with an opacity of 0.2 on each circle. Data is loaded as CSV and parsed on the fly.

AI-generated description

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

Shows the Iris Dataset.

MIT Licensed

Similar vizzes