React Native StackedBar (classic) for Expo

Switch mode and watch bars morph.

Also known as: stacked bar chart, stacked column chart, grouped bar chart.

<StackedBarChart />1 variant

Live — the real React Native component rendered with react-native-web. Tap, drag and scrub it.

Installation

terminal
npx expo install expo-charts react-native-svg

Usage

Import the component and pass your data. Width defaults to the parent, so it adapts to phones, tablets and rotation.

Like this? There's a lot more in Pro Pro

12 full screens built from the same kit — install them the same way.

See what's in Pro

Props

PropTypeDefault
mode

Layout.

"stacked" | "grouped""stacked"

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.