Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Animated D3 Scatterplot with Menus with Species

Public visualization

Viewing a saved revision (read-only)

e862dd1701a549419b78f39f0dc02259

Animated D3 Scatterplot with Menus with Species

0 stars1🌍 Public
HHtet Yan Oo
Last edited May 2, 2024
Created on May 2, 2024

This interactive scatterplot visualizes the Iris flower dataset, allowing users to explore relationships between sepal and petal measurements across species. The visualization uses D3.js (v7) with an SVG rendering approach, featuring dropdown menus to dynamically switch which numerical or categorical attributes appear on the x and y axes. When a selection changes, circles smoothly transition to new positions over one second using the `transition` API, with axis titles and scale types (numerical vs. categorical) updating to match. The code employs reusable components for the scatter plot and menus, built with the join pattern for efficient DOM updates as data mappings change.

AI-generated description