Skip to main content
FioriCharts is a SwiftUI module that replaces the RoambiChartKit charting library previously embedded in SAPFiori. Migrating to SwiftUI enables new chart components — donut, bullet, stocks, and more — while modernizing existing charts with pinch-to-zoom, pan, and updated Fiori design. All charts share a single, consistent API: create a ChartModel with your data and chart type, then pass it to ChartView.

Platform support

  • iOS 17.0+
  • visionOS 2.0+

Basic usage

import FioriCharts
import SwiftUI

let model = ChartModel(
    chartType: .line,
    data: [
        [nil, 220, nil, 250, 200, nil, 230],
        [160, nil, 130, 170, nil, 190, 180]
    ],
    titlesForCategory: [["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"]]
)

ChartView(model)
    .frame(width: 300, height: 200)
ChartView is an ObservableObject-driven view — mutating any published property on ChartModel automatically re-renders the chart.

Supported chart types

FioriCharts provides 17 chart types through the ChartType enum.
CaseDescription
.lineLine chart — one or more series plotted as connected lines
.columnClustered column chart — vertical bars grouped by category
.comboCombo chart — first series as columns, additional series as lines
.barBar chart — horizontal bars grouped by category
.stackedColumnStacked column chart — series stacked vertically
.waterfallWaterfall chart — cumulative value changes with optional totals
.areaArea chart — lines with filled area below
.scatterScatter chart — data points plotted by x/y coordinates
.bubbleBubble chart — scatter with a third dimension shown as bubble size
.donutDonut chart — circular chart with a hole; supports multiple selections
.stackedBarStacked bar chart — series stacked horizontally
.stockStock chart — OHLC or candlestick-style time series
.micro_areaMicro area chart — compact sparkline with filled area
.micro_bulletMicro bullet chart — compact bar with target and range indicators
.micro_columnMicro column chart — compact column sparkline
.micro_harvey_ballHarvey ball micro chart — circular completion indicator
.micro_radialMicro radial chart — compact arc completion indicator

Migration from SAPFiori

FioriCharts is designed as a backward-compatible replacement for the RoambiChartKit-based charts in SAPFiori 4.x and 5.x. The table below shows parity status.
ChartSAPFiori 4.0.x, 5.0.xFioriCharts
Area
Line
Column
Stacked Column
Bar
Stacked Bar
Bubble
Scatter
Waterfall
Combo
Donut
Bullet
Harvey Ball
Radial
Stocks (line)
FioriCharts adds Stacked Bar, Donut, Bullet, Harvey Ball, Radial, and Stock charts that were not available in the UIKit library.

Explore

ChartModel

Data model reference — parameters, data structure, selection modes.

Chart types

Code examples for every chart type with ChartView and ChartModel.

Customization

Series colors, axis styles, gridlines, points, and selection behavior.

Build docs developers (and LLMs) love