# StackedBar (classic) — React Native chart for Expo

> Stacked ↔ grouped morph.

Switch mode and watch bars morph.

- Docs: https://expokit.in/docs/charts/stacked-bar
- Tier: Free (expo-charts, MIT)
- Component: `<StackedBarChart />`
- Category: Classic
- Also called: stacked bar chart, stacked column chart, grouped bar chart
- Platforms: iOS, Android, web
- Expo Go: yes (draws with react-native-svg)
- Variants: Stacked bar

## Installation

```bash
npx expo install expo-charts react-native-svg
```

Import: `import { StackedBarChart } from "expo-charts";` — then render `<StackedBarChart data={…} />`.

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `mode` | `"stacked" \| "grouped"` | `"stacked"` | Layout. |

## FAQ

### How do I make a stacked bar chart in React Native?

Use ExpoKit's StackedBar (classic): install the expo-charts package (npx expo install expo-charts react-native-svg) and render <StackedBarChart data={…} />. It's animated and touchable, and works on iOS, Android, web and in Expo Go.

### Does StackedBar (classic) work in Expo Go?

Yes. It draws with react-native-svg, which Expo Go includes, so it runs on iOS and Android with no development build.

### Is StackedBar (classic) free?

Yes. StackedBar (classic) is in expo-charts, which is free and MIT-licensed.

## More

- Live preview, variants and code: https://expokit.in/docs/charts/stacked-bar
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
