Fork of React & D3 Starter
This example presents a scatter plot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis. It demonstrates a decoupled React and D3 integration pattern for scalable projects, rendering circles as SVG elements within a React component. The code uses D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` for scales and axes, while React manages component state and lifecycle. Data is loaded asynchronously from a CSV file using D3’s `csv` function, with the visualization wrapped in a reusable `viz` function.