IC-7
✓ Published0🌍 Public
This example visualizes the classic Iris flower dataset as a scatter plot, mapping sepal length to the x-axis and petal length to the y-axis. It uses D3 scales and axes to render the chart, with semi-transparent circles representing individual data points. The code demonstrates a decoupled React and D3 architecture, where D3 handles the SVG rendering and React manages the component lifecycle. It uses `d3.csv` for data loading, `scaleLinear` and `extent` for scaling, and `axisLeft` and `axisBottom` for the axes.
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