Fork of React + D3 Viz Starter
✓ Published0🌍 Public
A React and D3.js starter fork displays an empty SVG canvas. The visualization uses a reusable `VizContainer` component to abstract SVG and group elements while following standard margin conventions. The code integrates React 16 and D3 v6 via CDN links, with dimensions set to 960 by 500 pixels. The container renders gray rectangles to visualize the margin structure, which can be hidden by removing the `showMargins` prop. Currently, the example only demonstrates the boilerplate layout without any data or chart elements.
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