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

    chartView

    The FUIChartView in which selections have changed.

    selections

    The 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

    chartView

    The FUIChartView that the plot item belongs to.

    plotItem

    The plot item that is to be colored.