Skip to main content
100%

Reusable D3 Scatterplot

✓ Published1🌍 Public
Mmegan-grannan
Last edited Aug 14, 2023
Created on Aug 14, 2023
Forked from D3 Scatterplot

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 description

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

See also React Starter.

MIT Licensed

Similar vizzes