Reusable D3 Scatterplot
✓ Published1🌍 Public
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.
MIT Licensed