ComposedChart
Chart
Bars, lines, and gradient-washed areas sharing one categorical axis: each series picks its mark with a line or area boolean (bars by default; precedence line > area > bars).
Playground
Every control sets a real prop of ComposedChartProps. The JSX below updates as you go.
Web
iOS
Android
JSX · ComposedChartProps
Variants
2 examples from src/charts/composed-chart/composed-chart.md, each rendered live from its own JSX.
Anatomy
1
Chart frame
2
Series
3
Axis labels
4
Legend
5
Gridlines
Dimmed parts appear only in some states or variants.
Props
2 props on ComposedChartProps, grouped as they are declared in source. Required props are marked *.
Omit<CartesianSeriesProps, "series"> · the shared labels · series · title · max · min · success · destructive · curved · compact · plain · hideLegend · hideGrid · hideAxes · formatValue · selected · defaultSelected · onSelect · testID · style props.
Accessibility and keyboard
Keyboard
Tab
Focuses the plot
ArrowLeft
ArrowRight
Steps through points when inspectable
Escape
Clears the inspected point
Semantics
No role of its own in source; it reads as the content it renders.
From the docs
The classic "revenue bars with a margin line" chart, on one shared zero-based y axis, with the same scrub-to-inspect, legend, and accessible-name contract as the other cartesian charts. For bar-only grouped data, reach for the bar Chart's grouped mode instead; composed earns its keep when the marks mix.
Platform skins
The playground's props on each platform: same tree, native shapes, type and touch sizes.
Usage
The classic "revenue bars with a margin line" chart, on one shared zero-based y axis, with the same scrub-to-inspect, legend, and accessible-name contract as the other cartesian charts. For bar-only grouped data, reach for the bar Chart's grouped mode instead; composed earns its keep when the marks mix.
Tokens
Read from the playground render. Values follow the scheme and the ion hue.
--c1
--c2
--fd
--fm
--ft
--ln
--sf
--sh-sm
--tx2
--tx3