What it does
Stacks each series into the same category bar with shared grid, axis, legend, and tooltip controls.
It uses the same appearance and density variants as BarChart.
Data shape
Rows hold category labels in `xKey`; numeric fields referenced by `series.dataKey` become stacked segments.
Common use cases
- Revenue split by product across months.
- Traffic source mix by campaign.
- Completed versus pending work by team.
Accessibility
Use legends and tooltips with explicit series names.
Avoid too many stacked segments when comparisons need precision.
Next.js integration notes
Import from `@zentauri-ui/zentauri-components/charts/stacked-bar` inside client components when interaction is required.
FAQ
Why use StackedBarChart instead of BarChart with stacked?
Use StackedBarChart when stacking is the primary chart type you want to expose from an entry or CLI vendor command.
Can series customize stack groups?
The component applies one shared stack by default through the BarChart implementation; use BarChart directly for more specialized grouped stacking.