FioriSwiftUICore and FioriCharts are separate modules within the same Swift package. FioriSwiftUICore does not embed charts directly, but because both modules ship in the same FioriSwiftUI umbrella product, you can freely compose ChartView (from FioriCharts) inside any FioriSwiftUICore component that accepts an arbitrary SwiftUI view.
To use
FioriCharts types, add FioriSwiftUI (the umbrella product) or both FioriSwiftUICore and FioriCharts to your target. Either approach gives your code access to both modules.Embedding a chart in a Card
ThecardBody parameter of Card accepts any SwiftUI view, making it the natural place to embed a chart.
Embedding a chart in ObjectHeader
ObjectHeader exposes a headerChart slot that was designed specifically to hold a compact chart:
Available chart types
TheFioriCharts module supports the following chart types via ChartModel:
| Chart type | Supported |
|---|---|
| Area | ✅ |
| Line | ✅ |
| Column | ✅ |
| Stacked column | ✅ |
| Bar | ✅ |
| Stacked bar | ✅ |
| Bubble | ✅ |
| Scatter | ✅ |
| Waterfall | ✅ |
| Combo | ✅ |
| Donut | ✅ |
| Bullet | ✅ |
| Harvey Ball | ✅ |
| Radial | ✅ |
| Stocks (line) | ✅ |
Sizing charts inside form components
AllFioriSwiftUICore container components use SwiftUI’s standard layout system. Wrap ChartView in an explicit .frame() so the chart occupies a predictable amount of vertical space within the card or header:
Further reading
See the FioriCharts overview for the fullChartModel API reference and chart configuration options.