Reusable D3 Scatter Plot with symbols
✓ Published0🌍 Public
This example presents a reusable scatter plot built with D3 v7 and React, displaying the Iris dataset with sepal length on the y-axis and petal length on the x-axis. Each species of iris is distinguished by a different SVG symbol shape, drawn using `d3.symbol` and `d3.symbols`, with axes rendered via `d3.axisLeft` and `d3.axisBottom`. The chart uses `d3.scaleLinear` for positioning and `d3.scaleOrdinal` to map species to symbols, while the reusable `scatterPlot` function is configured through a fluent interface.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed