Skip to main content
Live example: app/demo/momentum-and-degen.tsx in the example app.

Momentum coloring with degen particle bursts and screen shake

Momentum

Momentum drives the live dot and badge color (up / down / flat). By default it’s auto-detected from recent data.
The momentum prop accepts:
  • true — auto-detect (default)
  • false — disabled, always flat
  • "up" / "down" / "flat" — a forced value
  • MomentumConfig — auto-detect with custom sensitivity
threshold is the fraction of the lookback range the tail delta must exceed to register as directional; lookback is how many recent points feed the range calculation.

Degen mode

Degen mode adds a particle burst (and, by default, a screen shake) on momentum swings — great for trading / meme-market UIs.
Tune it with DegenOptions:
Degen is available on both LiveChart and LiveChartSeries. On multi-series each visible series bursts off its own dot, in that series’ color, on its own upward momentum swing (per-outcome).
Particle bursts render through a single batched Skia drawAtlas call: one white-circle sprite is rasterized once, then every active particle is blitted with its own transform and color in that one draw. So even dense bursts stay cheap. This is automatic — no API or config change.

Reacting to shake

onDegenShake fires on the JS thread when a shake starts (unless shake is false) — useful for haptics:
See the full DegenOptions fields in the LiveChart reference.