Skip to main content
100%

Basic Scatter Plot with React & D3

✓ Published36🌍 Public
CCurran Kelleher
Last edited Sep 5, 2025
Created on Sep 5, 2025

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
MIT Licensed

Similar vizzes