Rehusable Scatter Plot
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed