Fork of Hello HTML
✓ Published0🌍 Public
This example presents a scatter plot of the classic Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis. It demonstrates a decoupled React and D3 integration pattern, where a custom `useData` hook loads and parses the CSV, while a `viz` function handles scales and rendering using `d3.scaleLinear` and `d3.axisBottom`. The visualization is rendered as SVG circles with coordinated axes, showcasing scalable project structure for future complexity.
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