Fork of React + D3 Viz Starter
This example shows a stacked bar chart displaying sample invoice data, with categories A, B, and C broken into three value segments. The chart is built with React and D3 v6, using d3.stack to aggregate values, d3.scaleBand and d3.scaleLinear for axes, and d3.scaleOrdinal for color encoding. Bars are rendered as SVG rectangles within a React component, using a Card layout and a VizContainer that follows the margin convention. The code includes commented-out margin visualization props for debugging layout.