SChartAnimationTracker Class Reference

Inherits from NSObject
Declared in SChartAnimationTracker.h
Availability
Related samples

Overview

Informs the chart about which series it should show or hide using the corresponding animation.

Instance Methods

hideSeries:animation:duration:completion:

Hides a currently displayed series with the supplied animation lasting for the time specified by the value of ‘duration’.

- (void)hideSeries:(SChartSeries *)series animation:(SChartAnimation *)animation duration:(double)duration completion:(nullable SChartCompletionBlock)completion

Parameters

series

A series to animate.

animation

An animation to hide the currently displayed series.

duration

The duration of the animation.

completion

A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called.

Declared In

SChartAnimationTracker.h

hideSeries:animation:progressCalculator:completion:

Hides a currently displayed series with the supplied animation using the progress value determined by the progress calculator.

- (void)hideSeries:(SChartSeries *)series animation:(nullable SChartAnimation *)animation progressCalculator:(id<SChartProgressCalculator>)progressCalculator completion:(nullable SChartCompletionBlock)completion

Parameters

series

A series to animate.

animation

An animation to display the currently hidden series. If this is nil, the series will hide immediately.

progressCalculator

The progress calculator used in conjunction with the animation instance to hide the series.

completion

A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called.

Declared In

SChartAnimationTracker.h

showSeries:animation:duration:completion:

Shows a hidden series with the supplied animation lasting for the time specified by the value of ‘duration’.

- (void)showSeries:(SChartSeries *)series animation:(SChartAnimation *)animation duration:(double)duration completion:(nullable SChartCompletionBlock)completion

Parameters

series

A series to animate.

animation

An animation to display the currently displayed series.

duration

The duration of the animation.

completion

A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called.

Declared In

SChartAnimationTracker.h

showSeries:animation:progressCalculator:completion:

Shows a hidden series with the supplied animation using the progress value determined by the progress calculator.

- (void)showSeries:(SChartSeries *)series animation:(nullable SChartAnimation *)animation progressCalculator:(id<SChartProgressCalculator>)progressCalculator completion:(nullable SChartCompletionBlock)completion

Parameters

series

A series to animate.

animation

An animation to display the currently displayed series. If this is nil, the series will show immediately.

progressCalculator

The progress calculator used in conjunction with the animation instance to show the series.

completion

A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called.

Declared In

SChartAnimationTracker.h