🌍 Public
Viewing a saved revision (read-only)
2039d79912df4ea08cb55fa465dd00ce
test2
A stacked bar chart displays four groups, each segmented into three fruit quantities from a hard-coded dataset. The SVG chart is rendered using React and D3 v5, with `d3.stack()` computing the series layers and `scaleBand` and `scaleLinear` positioning the bars and axes. Each fruit type receives a distinct fill color from an array, and the chart includes no interactive elements.
AI-generated descriptionReact Starter code.