SChartRedrawCalculator

@protocol SChartRedrawCalculator <NSObject>

Classes conforming to this protocol control the queueing of calls to redraw the chart.

  • This method is responsible for determining whether chart should be redrawn in order to complete any in-progress animations.

    Declaration

    Objective-C

    - (BOOL)shouldQueueRedrawForAnimationOnChart:(ShinobiChart *)chart
                                 animationActive:(BOOL)animationActive;

    Swift

    func shouldQueueRedrawForAnimation(on chart: ShinobiChart!, animationActive: Bool) -> Bool

    Parameters

    chart

    The chart on which animations should be queued, if necessary

    animationActive

    Whether an animation is in-progress on at least one of the series on the chart.

    Return Value

    A boolean, indicating whether a call to redraw the chart should be made.