Skip to main content
100%

Reusable D3 Scatter Plot (animated, menu)

✓ Published1🌍 Public
PPeiyang Li
Last edited May 1, 2023
Created on May 1, 2023

This interactive scatter plot visualizes the Iris dataset, letting users dynamically select which flower measurements appear on the X and Y axes through two dropdown menus. Built with React and D3 v7, the visualization uses reusable chart components and SVG rendering to display data points as animated circles that smoothly transition between positions when axis selections change. The scatter plot employs d3.scaleLinear for coordinate mapping, d3.axisLeft and d3.axisBottom for scales, and d3.transition with a 1000ms duration to animate circle movements, while d3.csv loads the dataset from a remote URL.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes