Sparkline
Chart
A compact trend strip: a row of thin bars whose heights track a series of values, with the series in a soft wash of the tone and the latest bar in the full accent. Pass values and it sizes each bar against the series max and paints the tone, so no call site hand-composes a row of flexGrow + height + backgroundColor Views to draw an inline trend on a stat card or dashboard.
Playground
Every control sets a real prop of SparklineProps. The JSX below updates as you go.
Web
iOS
Android
JSX · SparklineProps
Variants
4 examples from src/charts/sparkline/sparkline.md, each rendered live from its own JSX.
Anatomy
1
Line
2
Fill
3
End marker
Dimmed parts appear only in some states or variants.
Props
12 props on SparklineProps, grouped as they are declared in source. Required props are marked *.
Accessibility and keyboard
Keyboard
Tab
Focuses the plot
ArrowLeft
ArrowRight
Steps through points when inspectable
Escape
Clears the inspected point
Semantics
Roles
img
ARIA on web
aria-label
Platform skins
The playground's props on each platform: same tree, native shapes, type and touch sizes.
Usage
Tokens
Read from the playground render. Values follow the scheme and the ion hue.
--c1
--f-dp
--fd
--ft