Skip to content

v1.1.0

Choose a tag to compare

@brandtnewlabs brandtnewlabs released this 06 Jun 11:37
· 32 commits to main since this release
994b3aa

Second release — configurable live dots, press-and-hold scrubbing, scrub-dim fixes, and a scrubbing performance fix.

Added

  • LiveChart dot prop — style the single-series live dot: radius, ring
    (the haloed outer ring), show, and color.
  • LiveChartSeries dot gains ring, show, and color.
  • Shared DotConfig type for both charts (MultiSeriesDotConfig extends it),
    plus DotRingConfig.
  • scrub.panGestureDelay — a press-and-hold delay (ms) before scrubbing
    activates, so a quick horizontal swipe falls through to a parent gesture
    (e.g. a navigator's swipe-back-to-previous-route). Defaults to 0 (immediate).

Changed

  • Multi-series dots now render a contrasting outer ring (halo) by default,
    matching the single-series live dot. Pass dot={{ ring: false }} for flat
    circles.
  • The single-series live dot's default outer radius is now 6.0px (was 6.5px),
    from the shared 2.5px ring width. Pass dot={{ ring: { width: 3 } }} to
    restore the previous size.

Fixed

  • The scrub dim now fully covers the live dot and its pulse ring while
    scrubbing (previously only the left half was dimmed), on both charts. The
    live-price badge and per-series value labels are drawn above the dim so they
    are no longer clipped, and the dim stops short of the Y-axis labels.

Performance

  • The scrub tooltip no longer calls Skia measureText on every frame; it sizes
    the monospace text by character count instead. Fixes a UI-thread frame-rate
    drop while scrubbing.

📦 npm: https://www.npmjs.com/package/react-native-livechart/v/1.1.0
📖 Full changelog: https://github.com/brandtnewlabs/react-native-livechart/blob/main/CHANGELOG.md