Skip to main content
100%

Animated Reusable Scatter Plot with menu

✓ Published0🌍 Public
SShannon Teoh
Last edited May 26, 2024
Created on May 26, 2024

This example presents an interactive scatter plot of the Iris dataset, where users can dynamically select which measurements appear on the X and Y axes via dropdown menus. The visualization renders SVG circles with different symbol shapes representing species, and smoothly animates transitions between axis configurations using D3 transitions. The reusable charts, `scatterPlot` and `menu`, are built with D3 v6 and React, leveraging scales like `scaleLinear` and `scaleOrdinal` along with axis generators. Data is loaded asynchronously from a CSV file, and the plot updates in place when menu selections change.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes