Skip to main content
100%

Animated D3 Scatter Plot including species

✓ Published0🌍 Public
Ppawelsapiecha
Last edited Jan 2, 2023
Created on Jan 2, 2023

This animated scatter plot, built with React and D3, visualizes the classic Iris flower dataset. Users can dynamically select which quantitative measurements (sepal length/width, petal length/width) or the categorical species label to map to the x and y axes via interactive dropdown menus. The visualization employs SVG circles with a 20% opacity, and when axes are changed, the points smoothly transition to their new positions over a one-second duration using D3's `transition` and staggered delays. The code uses D3 modules including `scaleLinear`, `scalePoint`, `axisLeft`, `axisBottom`, and `extent` to handle scaling, axes, and data domains, with data loaded from a GitHub-hosted CSV file.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes