Skip to main content
100%

Reusable D3 Scatter Plot

✓ Published0🌍 Public
Mmandalasaikrishna007
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from HTML Starter

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 description

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

See also React Starter.

MIT Licensed

Similar vizzes