Skip to content

v3.1.0

Choose a tag to compare

@brandtnewlabs brandtnewlabs released this 08 Jun 23:59
· 4 commits to main since this release

Minor release — all changes are additive and backward-compatible. No API removals, no peer-dependency changes.

Added

  • Scrub gesture callbacksonGestureStart / onGestureEnd on both LiveChart and LiveChartSeries, fired when a scrub interaction begins and ends (e.g. pause a parent carousel or disable list scrolling while scrubbing).
  • selectionDot on both charts — customize the dot drawn at the scrub position: boolean | SelectionDotConfig with size, color, ring (boolean | SelectionDotRingConfig), or a fully custom component (ComponentType<SelectionDotProps>). New exported types: SelectionDotConfig, SelectionDotRingConfig, SelectionDotProps.
  • Multi-color area-fill gradientsGradientConfig.colors?: string[] (with optional positions?: number[]) renders a custom multi-stop fill, mirroring react-native-graph's gradientFillColors. Omit for the existing two-stop top/bottom fallback. Single-series only.
  • Axis labelstopLabel / bottomLabel (boolean | AxisLabelConfig) on both charts draw labels at the high/low of the visible range (Robinhood-style), with format, color, position, or a custom render render-prop. New type: AxisLabelConfig.
  • static modestatic={true} on LiveChart renders a non-animated, gesture-free sparkline, cheap enough for long lists.

Performance

  • The degen particle burst now renders through a single drawAtlas call 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