react-d3
This React and D3 example demonstrates a reusable SVG container component that establishes a standard margin convention for data visualizations. The `VizContainer` component abstracts the SVG and group elements, rendering a gray background rect and an inner plotting area with a transform translation. Using React and ReactDOM for the component structure, it accepts width, height, margin, and inner dimensions as props, with an optional `showMargins` flag to display the boundary rectangles. The code sets up a 960x500 canvas with 30-pixel margins, providing boilerplate for future chart development within the translated coordinate system.