Skip to content

Object Header Chart View

FUIObjectHeaderChartView

open class FUIObjectHeaderChartView: FUITintableDrawingView<FUIControlState>, FUITitleComponent, FUISubtitleComponent, FUITrendComponent, FUIKPIComponent, FUIKPIAttributesConsumer, FUIKPIAttributesProvider

Chart & KPI content View for presentation in FUIObjectHeader. Set an instance of this view to the FUIObjectHeader.detailContentView property, for correct layout.

Usage

let view = FUIObjectHeaderChartView()
view.title.text = "Voltage Readings"
view.subtitle.text = "Volatility"
view.trend.text = "0.24%""
view.trendImage = FUIIconLibrary.analytics.trendUp.withRenderingMode(.alwaysTemplate)
view.trendSemanticColor = UIColor.preferredFioriColor(forStyle: .positive)
view.chartView.dataSource = self
view.isEnabled = true

objectHeader.detailContentView = view

Last update: December 8, 2020