FUIChartLegendView
@MainActor
open class FUIChartLegendView : FUIDrawingView, FUISeriesTitleComponent, UIGestureRecognizerDelegate, ChartObserver
Legend view component of FUIChartLegendTableViewCell, FUIChartFloorplanView, FUIChartFloorplanViewController, and FUIChartFloorplanTableViewCell.
Typically not used directly by developer.
Usage
let view = FUIChartLegendView()
view.seriesTitles = ["2016", "2017"]
view.seriesColor = [UIColor.preferredFioriColor(forStyle: .chart1), UIColor.preferredFioriColor(forStyle: .chart2)]
Theming
Supported class paths:
fdlFUIChartLegendView_seriesTitles {}
Supported properties:
font-color: Color; font-style: UIFontTextStyle; text-line-clamp: Integer; text-align: NSTextAlignment;
-
Array of
UIColors to be used to show series data on theFUIChartViewDeclaration
Swift
@MainActor public var seriesColors: [UIColor] { get set } -
Flag for setting if should enable series selection when legend for series is tapped.
Declaration
Swift
@MainActor open var allowSelection: Bool -
Index for selected series.
Declaration
Swift
@MainActor open var indexForSelectedSeries: Int? { get } -
Selects a series in the legend view identified by index.
Calling this method does not cause the delegate to receive a chartLegendView(_:didSelectSeriesAt:) message
Declaration
Swift
@MainActor open func selectSeries(at index: Int?)Parameters
indexIndex for series.
-
Deselects a series in the legend view identified by index.
Calling this method does not cause the delegate to receive a chartLegendView(_:didDeselectSeriesAt:) message
Declaration
Swift
@MainActor open func deselectSeries(at index: Int)Parameters
indexIndex for series.
-
Delegate class for the FUIChartLegendView.
Declaration
Swift
@MainActor public weak var delegate: FUIChartLegendViewDelegate? -
System formatted String to be displayed as the seriesTitle
Declaration
Swift
@MainActor public var seriesTitles: [FUIText] { get set } -
Developer formatted
NSAttributedStringto display as the series titleDeclaration
Swift
@MainActor public var seriesTitlesAttributedText: NSAttributedString! { get set }