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
-
Title text for view
Declaration
Swift
public private(set) var title: FUIText { get }
-
Subtitle text for view.
Declaration
Swift
public private(set) var subtitle: FUIText { get }
-
Trend text for view. Is colored by
trendSemanticColor
if one is supplied.Declaration
Swift
public private(set) var trend: FUIText { get }
-
Image displayed in-line with
trend
string. Set imagerenderingMode
to.alwaysTemplate
to applytrendSemanticColor: UIColor
as tint.Declaration
Swift
public var trendImage: UIImage? { get set }
-
Color applied to
trend
,trendImage
, andchartView
series plot.Declaration
Swift
public var trendSemanticColor: UIColor? { get set }
-
Size for trend image.
Set size to nil if the intrinsic image size should be used. Default value is 16 * 16.
Declaration
Swift
public var trendImageSize: CGSize?
-
Array of
FUIKPIItem
s to display in theFUIKPIView
Declaration
Swift
public var kpiItems: [FUIKPIViewItem] { get set }
-
NUIStyleClassPath for kpiUnitItem property
Declaration
Swift
public var kpiUnitItemStyleClassPath: [FioriStyle] { get set }
-
NUIStyleClassPath for kpiMetricItem property
Declaration
Swift
public var kpiMetricItemStyleClassPath: [FioriStyle] { get set }
-
NUIStyleClassPath for kpiIconItem property
Declaration
Swift
public var kpiIconItemStyleClassPath: [FioriStyle] { get set }
-
NUIStyleClassPath for kpiFractionItem property
Declaration
Swift
public var kpiFractionItemStyleClassPath: [FioriStyle] { get set }
-
Provider for
FUIKPIAttributedStringBuilder
attributesDeclaration
Swift
public var kpiAttributesProvider: FUIKPIAttributesProvider?
-
View containing the chart and plotted points
Declaration
Swift
public let chartView: FUIChartView
-
Boolean value to determine whether a user is able to interact with the control
Declaration
Swift
open override var isEnabled: Bool { get set }
-
UILongPressGestureRecognizer
to be used on longPress of ChartHeaderContentDeclaration
Swift
public private(set) var longPressGestureRecognizer: UILongPressGestureRecognizer! { get }