Viewing a saved revision (read-only)
d46574ee7f024480884f55cf3f8dd8d8
Animated Scatterplot with Menus and scalePoint
This example shows an interactive scatterplot of the Iris dataset, where users can select which quantitative or categorical attributes to plot on the x- and y-axes via HTML dropdown menus built with the custom `menu` component. The visualization uses D3 version 6.7.0, rendering points as SVG circles that animate between positions using `transition` and `delay`, with axes updated via `axisBottom` and `axisLeft`. The code dynamically switches between `scaleLinear` for quantitative data and `scalePoint` for categorical data, and includes smooth enter-update-exit transitions for the circles.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.