Test Graph
✓ Published0🌍 Public
This example visualizes the Iris flower dataset as a scatter plot, mapping sepal length on the x-axis and petal length on the y-axis. It uses d3.scaleLinear for axis scaling and d3.axisBottom and d3.axisLeft for rendering the axes. The visualization is built with React 18 and D3 v7, where the React component manages the SVG container while D3 handles the data binding and rendering of circles. The code demonstrates a decoupled integration pattern, with data loading through d3.csv and state management via React hooks.
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