Untitled
✓ Published0🌍 Public
This example shows a scatterplot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis. It uses D3’s `scaleLinear` and `extent` to compute scales, and renders circles with `selection.join` for data binding. The visualization is built with React 18 and D3 7, where React manages the SVG container and a D3 function handles chart drawing. Axes are added via `axisBottom` and `axisLeft`, with SVG as the rendering output.
AI-generated descriptionThis viz is a starter that demonstrates patterns used in real world projects in which complexity is anticipated to scale.
- Decoupled React & D3 integration
- Opening moves for scalable complexity
- Industry standard ES modules and JSX
- Copy-paste into existing projects
Any questions? Ask on Twitter!
Also viewable in:
MIT Licensed