Fork of React + D3 Viz Starter
✓ Published0🌍 Public
This visualization gallery example presents a blank React application built with D3, using CDN links for React, ReactDOM, and D3. The code defines a `VizContainer` component that abstracts SVG and group elements, following the standard margin convention. It renders a 960 by 500 pixel SVG canvas with inner and outer rectangles that visualize the plotting area boundaries. The boilerplate sets up variables for dimensions and margins, with the `showMargins` prop toggleable to display or hide these reference rectangles. No actual data or chart is rendered, only the container structure.
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