Reusable D3 Scatter Plot Symbol
✓ Published1🌍 Public
This example demonstrates a reusable D3 scatter plot symbol component, displaying the Iris dataset with petal width on the x-axis and sepal length on the y-axis. Different iris species are rendered using distinct symbols via the `d3.symbol` API, with `d3.scaleOrdinal` mapping categories to symbol types. The visualization is built for React using an SVG rendering approach, where `d3.scaleLinear` handles axis scaling, `d3.axisLeft` and `d3.axisBottom` generate the axes, and `d3.extent` computes data domains. The component is configurable through a chainable interface, allowing flexible specification of dimensions, margins, and value accessors.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed