🌍 Public
Viewing a saved revision (read-only)
c4c05ec1afd042b3acc353b41472550d
Reusable D3 Scatter Plot
This example shows an animated scatter plot of Iris flower data, cycling through different petal and sepal measurements every two seconds. The visualization uses D3.js in a React environment to render SVG circles, with axes that update dynamically as the selected columns change. A reusable scatterPlot function encapsulates the chart logic, while the main script handles data loading from a GitHub Gist CSV and manages the animation interval. The plot includes a color-coded legend for species and uses D3's scaleLinear, scaleOrdinal, axisLeft, and axisBottom APIs to build the visualization.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.