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