option. There is no separate combo chart API. The registered modules are line, including area through areaStyle, bar, and pie or donut. Other ECharts series such as scatter and radar are not supported.
- Shared API / tooltips / palettes: Chart component
How it works
- Define one ECharts
optionwith severalseriesentries of different types, or line series with and withoutareaStyle. - Pass the option to
Chartwith avariant, usually"categorical"when the chart includes a line. - Leave colors and markers to
variant. A combined chart is multi-series, so the palette applies per series rather than per bar datum. - Set
accessibilityLabel,width, andheighton the React Native host.
Line and area
Stacked area bands useareaStyle together with stack, and an unstacked line carries a target or forecast. Leave stack and areaStyle off the line so it overlays the bands.
Bar and line
Bars carry the primary measure and a line carries the comparison series. Both share one category axis.yAxis as an array and set yAxisIndex on the series. This still renders through Chart rather than a separate API.