🌍 Public
Viewing a saved revision (read-only)
70d0675a419b4d3ca1d930010b3c1ac7
Basic Scatter Plot with React & D3
This example shows a basic scatter plot of the classic Iris flower dataset, plotting sepal length on the x-axis against sepal width on the y-axis. Each point is rendered as a black circle with a fixed radius of 12 pixels. The visualization is built with React and D3 v7, where React manages the component lifecycle and state, while D3's `scaleLinear` and `extent` functions compute the scales. The `csv` loader reads the data, and the `select` and `join` methods render the circles into an SVG element.
AI-generated description