iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIAnimations
@interface SCIAnimations : NSObject
Defines the class which contains methods to help create different animations/transformations for ISCIRenderableSeries
.
-
Creates
SCIValueAnimator
which can be used to animate associatedISCIRenderableSeries
withscale
transformation.Declaration
Objective-C
+ (nonnull SCIValueAnimator *)createScaleAnimatorForSeries: (nonnull id<ISCIRenderableSeries>)series;
Swift
class func createScaleAnimator(for series: ISCIRenderableSeries) -> SCIValueAnimator
Parameters
series
The associated
ISCIRenderableSeries
which is going to be animated.Return Value
SCIValueAnimator
insance which can be used to animate associatedISCIRenderableSeries
. -
Creates
SCIValueAnimator
which can be used to animate associatedISCIRenderableSeries
withscale
transformation.Declaration
Objective-C
+ (nonnull SCIValueAnimator *)createScaleAnimatorForSeries: (nonnull id<ISCIRenderableSeries>)series withZeroLine:(double)zeroLine;
Swift
class func createScaleAnimator(for series: ISCIRenderableSeries, withZeroLine zeroLine: Double) -> SCIValueAnimator
Parameters
series
The associated
ISCIRenderableSeries
which is going to be animated.zeroLine
Data value which determines the zero line in
Y-direction
, from which scaling will be performed.Return Value
SCIValueAnimator
insance which can be used to animate associatedISCIRenderableSeries
. -
Creates
SCIValueAnimator
which can be used to animate associatedISCIRenderableSeries
withsweep
transformation.Declaration
Objective-C
+ (nonnull SCIValueAnimator *)createSweepAnimatorForSeries: (nonnull id<ISCIRenderableSeries>)series;
Swift
class func createSweepAnimator(for series: ISCIRenderableSeries) -> SCIValueAnimator
Parameters
series
The associated
ISCIRenderableSeries
which is going to be animated.Return Value
SCIValueAnimator
insance which can be used to animate associatedISCIRenderableSeries
. -
Creates
SCIValueAnimator
which can be used to animate associatedISCIRenderableSeries
withwave
transformation.Declaration
Objective-C
+ (nonnull SCIValueAnimator *)createWaveAnimatorForSeries: (nonnull id<ISCIRenderableSeries>)series;
Swift
class func createWaveAnimator(for series: ISCIRenderableSeries) -> SCIValueAnimator
Parameters
series
The associated
ISCIRenderableSeries
which is going to be animated.Return Value
SCIValueAnimator
insance which can be used to animate associatedISCIRenderableSeries
. -
Creates
SCIValueAnimator
which can be used to animate associatedISCIRenderableSeries
withwave
transformation.Declaration
Objective-C
+ (nonnull SCIValueAnimator *)createWaveAnimatorForSeries: (nonnull id<ISCIRenderableSeries>)series withZeroLine:(double)zeroLine;
Swift
class func createWaveAnimator(for series: ISCIRenderableSeries, withZeroLine zeroLine: Double) -> SCIValueAnimator
Parameters
series
The associated
ISCIRenderableSeries
which is going to be animated.zeroLine
Data value which determines the zero line in
Y-direction
, from which scaling will be performed.Return Value
SCIValueAnimator
insance which can be used to animate associatedISCIRenderableSeries
. -
Creates
SCIValueAnimator
which can be used to animate associatedISCIRenderableSeries
withwave
transformation.Declaration
Objective-C
+ (nonnull SCIValueAnimator *)createWaveAnimatorForSeries: (nonnull id<ISCIRenderableSeries>)series withZeroLine:(double)zeroLine andDurationOfStep:(float)durationOfStep;
Swift
class func createWaveAnimator(for series: ISCIRenderableSeries, withZeroLine zeroLine: Double, andDurationOfStep durationOfStep: Float) -> SCIValueAnimator
Parameters
series
The associated
ISCIRenderableSeries
which is going to be animated.zeroLine
Data value which determines the zero line in
Y-direction
, from which scaling will be performed.durationOfStep
Wave duration before next point is started to animate. Default is
0.5
.Return Value
SCIValueAnimator
insance which can be used to animate associatedISCIRenderableSeries
. -
Creates
SCIValueAnimator
which can be used to animate associatedISCIRenderableSeries
withtranslate
transformation inX-Direction
.Declaration
Objective-C
+ (nonnull SCIValueAnimator *)createTranslateXAnimatorForSeries: (nonnull id<ISCIRenderableSeries>)series withOffset:(float)offset;
Swift
class func createTranslateXAnimator(for series: ISCIRenderableSeries, withOffset offset: Float) -> SCIValueAnimator
Parameters
series
The associated
ISCIRenderableSeries
which is going to be animated.offset
The translation offset value.
Return Value
SCIValueAnimator
insance which can be used to animate associatedISCIRenderableSeries
. -
Creates
SCIValueAnimator
which can be used to animate associatedISCIRenderableSeries
withtranslate
transformation inY-Direction
.Declaration
Objective-C
+ (nonnull SCIValueAnimator *)createTranslateYAnimatorForSeries: (nonnull id<ISCIRenderableSeries>)series withOffset:(float)offset;
Swift
class func createTranslateYAnimator(for series: ISCIRenderableSeries, withOffset offset: Float) -> SCIValueAnimator
Parameters
series
The associated
ISCIRenderableSeries
which is going to be animated.offset
The translation offset value.
Return Value
SCIValueAnimator
insance which can be used to animate associatedISCIRenderableSeries
. -
Creates
SCIValueAnimator
which can be used to animate associatedISCIRenderableSeries
with one of the providedISCIRenderPassDataTransformation
s.Declaration
Objective-C
+ (nonnull SCIValueAnimator *) createAnimatorForSeries:(nonnull id<ISCIRenderableSeries>)series withTransformation: (nonnull id<ISCIRenderPassDataTransformation>)transformation;
Swift
class func createAnimator(for series: ISCIRenderableSeries, with transformation: ISCIRenderPassDataTransformation) -> SCIValueAnimator
Parameters
series
The associated
ISCIRenderableSeries
which is going to be animated.transformation
The
ISCIRenderPassDataTransformation
which is going to be applied onto associatedseries
.Return Value
SCIValueAnimator
insance which can be used to animate associatedISCIRenderableSeries
.
-
Fade-in
animates passed inISCIRenderableSeries
withscale
transformation.Declaration
Objective-C
+ (void)fadeSeries:(nonnull id<ISCIRenderableSeries>)series duration:(NSTimeInterval)duration andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func fade(_ series: ISCIRenderableSeries, duration: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to
fade-in
.duration
The length of the animation.
easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Fade-in
animates passed inISCIRenderableSeries
withscale
transformation.Declaration
Objective-C
+ (void)fadeSeries:(nonnull id<ISCIRenderableSeries>)series duration:(NSTimeInterval)duration delay:(NSTimeInterval)delay andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func fade(_ series: ISCIRenderableSeries, duration: TimeInterval, delay: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to
fade-in
.duration
The length of the animation.
delay
The
delay
before start of the animation.easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation.
-
Animate passed in
ISCIRenderableSeries
withscale
transformation.Declaration
Objective-C
+ (void)scaleSeries:(nonnull id<ISCIRenderableSeries>)series duration:(NSTimeInterval)duration andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func scale(_ series: ISCIRenderableSeries, duration: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
duration
The length of the animation.
easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animate passed in
ISCIRenderableSeries
withscale
transformation.Declaration
Objective-C
+ (void)scaleSeries:(nonnull id<ISCIRenderableSeries>)series duration:(NSTimeInterval)duration delay:(NSTimeInterval)delay andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func scale(_ series: ISCIRenderableSeries, duration: TimeInterval, delay: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
duration
The length of the animation.
delay
The
delay
before start of the animation.easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animate passed in
ISCIRenderableSeries
withscale
transformation.Declaration
Objective-C
+ (void)scaleSeries:(nonnull id<ISCIRenderableSeries>)series withZeroLine:(double)zeroLine duration:(NSTimeInterval)duration andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func scale(_ series: ISCIRenderableSeries, withZeroLine zeroLine: Double, duration: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
zeroLine
Data value which determines the zero line in
Y-direction
, from which scaling will be performed.duration
The length of the animation.
easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animate passed in
ISCIRenderableSeries
withscale
transformation.Declaration
Objective-C
+ (void)scaleSeries:(nonnull id<ISCIRenderableSeries>)series withZeroLine:(double)zeroLine duration:(NSTimeInterval)duration delay:(NSTimeInterval)delay andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func scale(_ series: ISCIRenderableSeries, withZeroLine zeroLine: Double, duration: TimeInterval, delay: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
zeroLine
Data value which determines the zero line in
Y-direction
, from which scaling will be performed.duration
The length of the animation.
delay
The
delay
before start of the animation.easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation.
-
Animate passed in
ISCIRenderableSeries
withsweep
transformation.Declaration
Objective-C
+ (void)sweepSeries:(nonnull id<ISCIRenderableSeries>)series duration:(NSTimeInterval)duration andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func sweep(_ series: ISCIRenderableSeries, duration: TimeInterval, easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
duration
The length of the animation.
easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animate passed in
ISCIRenderableSeries
withsweep
transformation.Declaration
Objective-C
+ (void)sweepSeries:(nonnull id<ISCIRenderableSeries>)series duration:(NSTimeInterval)duration delay:(NSTimeInterval)delay andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func sweep(_ series: ISCIRenderableSeries, duration: TimeInterval, delay: TimeInterval, easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
duration
The length of the animation.
delay
The
delay
before start of the animation.easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation.
-
Animate passed in
ISCIRenderableSeries
withwave
transformation.Declaration
Objective-C
+ (void)waveSeries:(nonnull id<ISCIRenderableSeries>)series duration:(NSTimeInterval)duration andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func wave(_ series: ISCIRenderableSeries, duration: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
duration
The length of the animation.
easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animate passed in
ISCIRenderableSeries
withwave
transformation.Declaration
Objective-C
+ (void)waveSeries:(nonnull id<ISCIRenderableSeries>)series duration:(NSTimeInterval)duration delay:(NSTimeInterval)delay andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func wave(_ series: ISCIRenderableSeries, duration: TimeInterval, delay: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
duration
The length of the animation.
delay
The
delay
before start of the animation.easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animate passed in
ISCIRenderableSeries
withwave
transformation.Declaration
Objective-C
+ (void)waveSeries:(nonnull id<ISCIRenderableSeries>)series withZeroLine:(double)zeroLine duration:(NSTimeInterval)duration andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func wave(_ series: ISCIRenderableSeries, withZeroLine zeroLine: Double, duration: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
zeroLine
Data value which determines the zero line in
Y-direction
, from which scaling will be performed.duration
The length of the animation.
easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animate passed in
ISCIRenderableSeries
withwave
transformation.Declaration
Objective-C
+ (void)waveSeries:(nonnull id<ISCIRenderableSeries>)series withZeroLine:(double)zeroLine duration:(NSTimeInterval)duration delay:(NSTimeInterval)delay andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func wave(_ series: ISCIRenderableSeries, withZeroLine zeroLine: Double, duration: TimeInterval, delay: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
zeroLine
Data value which determines the zero line in
Y-direction
, from which scaling will be performed.duration
The length of the animation.
delay
The
delay
before start of the animation.easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animate passed in
ISCIRenderableSeries
withwave
transformation.Declaration
Objective-C
+ (void)waveSeries:(nonnull id<ISCIRenderableSeries>)series withZeroLine:(double)zeroLine andDurationOfStep:(float)durationOfStep duration:(NSTimeInterval)duration andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func wave(_ series: ISCIRenderableSeries, withZeroLine zeroLine: Double, andDurationOfStep durationOfStep: Float, duration: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
zeroLine
Data value which determines the zero line in
Y-direction
, from which scaling will be performed.durationOfStep
Wave duration before next point is started to animate. Default is
0.5
.duration
The length of the animation.
easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animate passed in
ISCIRenderableSeries
withwave
transformation.Declaration
Objective-C
+ (void)waveSeries:(nonnull id<ISCIRenderableSeries>)series withZeroLine:(double)zeroLine andDurationOfStep:(float)durationOfStep duration:(NSTimeInterval)duration delay:(NSTimeInterval)delay andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func wave(_ series: ISCIRenderableSeries, withZeroLine zeroLine: Double, andDurationOfStep durationOfStep: Float, duration: TimeInterval, delay: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
zeroLine
Data value which determines the zero line in
Y-direction
, from which scaling will be performed.durationOfStep
Wave duration before next point is started to animate. Default is
0.5
.duration
The length of the animation.
delay
The
delay
before start of the animation.easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation.
-
Animate passed in
ISCIRenderableSeries
withtranslate
transformation inX-Direction
.Declaration
Objective-C
+ (void)translateXSeries:(nonnull id<ISCIRenderableSeries>)series withOffset:(float)offset duration:(NSTimeInterval)duration andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func translateX(_ series: ISCIRenderableSeries, offset: Float, duration: TimeInterval, easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
offset
The translation offset value.
duration
The length of the animation.
easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animate passed in
ISCIRenderableSeries
withtranslate
transformation inX-Direction
.Declaration
Objective-C
+ (void)translateXSeries:(nonnull id<ISCIRenderableSeries>)series withOffset:(float)offset duration:(NSTimeInterval)duration delay:(NSTimeInterval)delay andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func translateX(_ series: ISCIRenderableSeries, offset: Float, duration: TimeInterval, delay: TimeInterval, easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
offset
The translation offset value.
duration
The length of the animation.
delay
The
delay
before start of the animation.easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animate passed in
ISCIRenderableSeries
withtranslate
transformation inY-Direction
.Declaration
Objective-C
+ (void)translateYSeries:(nonnull id<ISCIRenderableSeries>)series withOffset:(float)offset duration:(NSTimeInterval)duration andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func translateY(_ series: ISCIRenderableSeries, offset: Float, duration: TimeInterval, easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
offset
The translation offset value.
duration
The length of the animation.
easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animate passed in
ISCIRenderableSeries
withtranslate
transformation inY-Direction
.Declaration
Objective-C
+ (void)translateYSeries:(nonnull id<ISCIRenderableSeries>)series withOffset:(float)offset duration:(NSTimeInterval)duration delay:(NSTimeInterval)delay andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func translateY(_ series: ISCIRenderableSeries, offset: Float, duration: TimeInterval, delay: TimeInterval, easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
offset
The translation offset value.
duration
The length of the animation.
delay
The
delay
before start of the animation.easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation.
-
Animates passed in
ISCIRenderableSeries
with definedISCIRenderPassDataTransformation
and other params.Declaration
Objective-C
+ (void)animateSeries:(nonnull id<ISCIRenderableSeries>)series withTransformation: (nonnull id<ISCIRenderPassDataTransformation>)transformation duration:(NSTimeInterval)duration andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func animate(_ series: ISCIRenderableSeries, with transformation: ISCIRenderPassDataTransformation, duration: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
transformation
The
ISCIRenderPassDataTransformation
which will be used during animation.duration
The length of the animation.
easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation. -
Animates passed in
ISCIRenderableSeries
with definedISCIRenderPassDataTransformation
and other params.Declaration
Objective-C
+ (void)animateSeries:(nonnull id<ISCIRenderableSeries>)series withTransformation: (nonnull id<ISCIRenderPassDataTransformation>)transformation duration:(NSTimeInterval)duration startDelay:(NSTimeInterval)delay andEasingFunction:(nullable id<ISCIEasingFunction>)easingFunction;
Swift
class func animate(_ series: ISCIRenderableSeries, with transformation: ISCIRenderPassDataTransformation, duration: TimeInterval, startDelay delay: TimeInterval, andEasingFunction easingFunction: ISCIEasingFunction?)
Parameters
series
The series to animate.
transformation
The
ISCIRenderPassDataTransformation
which will be used during animation.duration
The length of the animation.
delay
The
delay
before start of the animation.easingFunction
The
ISCIEasingFunction
used in calculating the elapsed fraction of the animation.