Skip to main content

Bubble chart

Scatter with a third dimension mapped to radius.

Bubble chart in the example app

Screenshot from the example app. Run it to try every option live.

Usage​

import { BubbleChart } from 'react-native-skia-chart';

<BubbleChart width={w} height={240} data={points} maxRadius={18} />

Props​

PropTypeDefaultNotes
data{ x, y, z }[]—z drives size.
colorstring'#E17055'
minRadiusnumber4
maxRadiusnumber24
opacitynumber0.6
showGridbooleantrue
formatY(v) => string—

All charts also accept the shared props: width, height, padding, style, backgroundColor, animation, font, effects and gradient.

Gradient​

<BubbleChart {...props} gradient={{ type: 'radial', colors: ['#FFC048', '#FF6B9A'], center: [0.3, 0.3], radius: 1.2 }} />

GPU notes​

Combine with effects={{ glow: 8 }} for a neon look; the glow pass reuses the same gradient.