React Native Pixel Bars for Expo

Columns of squares that fill bottom-up, with ghost cells for the empty part.

Also known as: pixel bar chart, retro bar chart, 8-bit chart.

Pro<PixelBarChart />1 variantiOS · Android · Expo Go

Props

PropTypeDefault
data

One block per category.

{ label, value, color? }[]—
height

Chart height.

number240
animate

Entrance animation.

booleantrue
isLoading

Skeleton state.

booleanfalse
formatValue

Value formatting.

(v) => stringcompact
onSelect

Tap callback.

(item, index) => void—
levels

Squares per column.

number10
gap

Gap between squares.

number2
gradient

Fade colour upwards.

booleantrue

FAQ

How do I make a pixel bar chart in React Native?
Use ExpoKit's Pixel Bars: with ExpoKit Pro, the ExpoKit CLI copies the Pixel Bars source into your Expo or React Native app. It's animated and touchable, and works on iOS, Android, web and in Expo Go.
Does Pixel Bars 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 Pixel Bars free?
Pixel Bars is part of ExpoKit Pro. With a Pro plan, log the CLI in once (npx @expokit/cli@latest login) and it installs the full source into your app.