🌍 Public
Viewing a saved revision (read-only)
dda15bd46238413b8972d1f981e1ebbd
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.