🌍 Public
Viewing a saved revision (read-only)
1fb50d6a8bfa45c085135eca229d9d92
Reusable D3 Scatterplot
This example demonstrates a reusable D3 scatterplot component that visualizes the Iris flower dataset, mapping petal length and sepal length along the x and y axes. Points are colored and shaped by species using `d3.scaleOrdinal` with `d3.symbolsFill`. The component is built as a custom function using D3’s modular API, including `scaleLinear`, `axisLeft`, `axisBottom`, and `extent`, and is rendered with SVG. Data is loaded asynchronously via `d3.csv` and integrated into a React application.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.