FUIChartViewDelegate
public protocol FUIChartViewDelegate : AnyObject
Chart view delegates that handle selection changes.
-
chartView(_:didChangeSelections:)
Default implementationOptional. Informs the delegate that selections have changed.
Default Implementation
Declaration
Swift
func chartView(_ chartView: FUIChartView, didChangeSelections selections: [FUIChartPlotItem]?)
Parameters
chartView
The FUIChartView in which selections have changed.
selections
The new selections.
-
chartView(_:colorForPlotItem:)
Default implementationOptional. Requests a color for a plot item (FUIChartPlotItem) from the delegate. Returning nil uses the default coloring for the plot item.
Default Implementation
Declaration
Swift
func chartView(_ chartView: FUIChartView, colorForPlotItem plotItem: FUIChartPlotItem) -> UIColor?
Parameters
chartView
The FUIChartView that the plot item belongs to.
plotItem
The plot item that is to be colored.