Fork of React + D3 Viz Starter
✓ Published0🌍 Public
This example presents a minimal React and D3 visualization scaffold. It shows a blank SVG canvas with light gray inner and outer rectangles delineating chart margins, as defined by the margin convention. The code uses `VizContainer`, a React component that abstracts the SVG and group elements, and leverages ReactDOM to render the application. Data visualization code would be placed as children within the container, ready for D3 v6 integration.
AI-generated descriptionBoilerplate code for a React + D3 visualization with:
- CDN links for React, ReactDOM, and D3
- Basic React boilerplate
- Variables for dimensions and margins
- A
VizContainercomponent that:- Abstracts SVG/group container elements
- Follows the margin convention
- Show the margins, which can be easily removed by deleting the
showMargins={true} prop
MIT Licensed