🌍 Public
Viewing a saved revision (read-only)
64f358b6a7ed4e4bac1374003293f90c
Reusable Scatter PLot
This example shows a reusable scatter plot of the Iris dataset, colored by species, with petal length on the x-axis and petal width on the y-axis. The plot is built with React and rendered as SVG using D3’s `scaleLinear`, `axisLeft`, and `axisBottom` for scales and axes, while circles are added via `selection.join`. The dataset is loaded as CSV using D3’s `csv` function, with numeric parsing applied to each row. The scatter plot component is configurable through a fluent API for width, height, data, margins, and other properties.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.