🌍 Public
Viewing a saved revision (read-only)
ef2ef49aec2e43c38e1a6f3f773afd4a
Basic Scatter Plot with React & D3
A basic scatter plot displays the classic Iris flower dataset, plotting sepal length on the x-axis against sepal width on the y-axis for all 150 specimens. Each point appears as a fixed steelblue circle. The React app loads the CSV data via D3's `csv` function, then calls a separate `viz` function that uses `scaleLinear` and `extent` to compute the chart's scales. D3's `select` and a `.join` operation render the circles onto the SVG element.
AI-generated description