Skip to main content
100%

Reusable D3 Scatter Plot Symbol

✓ Published1🌍 Public
Rroyable88
Last edited Jan 25, 2023
Created on Jan 23, 2023
Forked from D3 Scatter Plot

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes