React Native Treemap for Expo

Part-to-whole as tiles with automatic readable text colour.

Also known as: tree map chart, hierarchy chart.

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

Props

PropTypeDefault
data

Tiles.

{ label, value, color? }[]—
gap / radius

Tile spacing & corners.

number3 / 8
colors

Tile colours.

string[]theme palette

FAQ

How do I make a treemap in React Native?
Use ExpoKit's Treemap: with ExpoKit Pro, the ExpoKit CLI copies the Treemap source into your Expo or React Native app. It's animated and touchable, and works on iOS, Android, web and in Expo Go.
Does Treemap 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 Treemap free?
Treemap 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.