Skip to main content
100%

Rehusable Scatter Plot

✓ Published0🌍 Public
AArturo Guevara
Last edited Sep 7, 2022
Created on Sep 7, 2022
Forked from Scatter Plot

This example demonstrates a reusable scatter plot built with React and D3, visualizing the classic Iris dataset. It maps petal length and sepal length onto x and y axes using `scaleLinear` and `extent`, rendering circles via SVG. The chart is generated by the custom `scatterPlot` function, which configures margins, radius, and accessor functions through a fluent API. Axes are added with `axisLeft` and `axisBottom`, while data is loaded asynchronously using `csv` and parsed with a row conversion function.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes