Skip to main content
100%

Reusable D3 Scatter plot with Symbol

✓ Published1🌍 Public
WWasanta Pruttisarikorn
Last edited Dec 22, 2022
Created on Dec 22, 2022

This example demonstrates a reusable D3 scatter plot that visualizes the iris dataset, mapping petal length and sepal length along the x and y axes, with different species represented by distinct symbols. The chart is built using React and renders as SVG, with axes and symbols generated via d3’s `scaleLinear`, `scaleOrdinal`, `axisLeft`, `axisBottom`, and `symbol` APIs. The code loads the data asynchronously from a CSV URL and applies custom parsing to convert numeric fields.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes