v3.1.0
Minor release — all changes are additive and backward-compatible. No API removals, no peer-dependency changes.
Added
- Scrub gesture callbacks —
onGestureStart/onGestureEndon bothLiveChartandLiveChartSeries, fired when a scrub interaction begins and ends (e.g. pause a parent carousel or disable list scrolling while scrubbing). selectionDoton both charts — customize the dot drawn at the scrub position:boolean | SelectionDotConfigwithsize,color,ring(boolean | SelectionDotRingConfig), or a fully customcomponent(ComponentType<SelectionDotProps>). New exported types:SelectionDotConfig,SelectionDotRingConfig,SelectionDotProps.- Multi-color area-fill gradients —
GradientConfig.colors?: string[](with optionalpositions?: number[]) renders a custom multi-stop fill, mirroring react-native-graph'sgradientFillColors. Omit for the existing two-stop top/bottom fallback. Single-series only. - Axis labels —
topLabel/bottomLabel(boolean | AxisLabelConfig) on both charts draw labels at the high/low of the visible range (Robinhood-style), withformat,color,position, or a customrenderrender-prop. New type:AxisLabelConfig. staticmode —static={true}onLiveChartrenders a non-animated, gesture-free sparkline, cheap enough for long lists.
Performance
- The degen particle burst now renders through a single
drawAtlascall instead of a per-particle<Circle>fan-out (one shared pre-rasterized sprite plus per-instance transforms/colors), cutting per-frame CPU on dense bursts.
Full changelog: https://github.com/brandtnewlabs/react-native-livechart/blob/main/CHANGELOG.md