iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIAxisInteractivityHelper
@protocol ISCIAxisInteractivityHelper <NSObject>
Defines a set of operations which allows to interact with axis that owns current instance of ISCIAxisInteractivityHelper.
-
Calculates and returns a Zoomed Range on current
ISCIAxis, usingfromCoordas a coordinate of new range start andtoCoordas a coordinate of new range end.Declaration
Objective-C
- (void)zoom:(nonnull id<ISCIRange>)range from:(CGFloat)fromCoord to:(CGFloat)toCoord;Swift
func zoom(_ range: any ISCIRange, from fromCoord: Double, to toCoord: Double)Parameters
rangeISCIRangeinstance to zoom.fromCoordThe coordinates of new range start in pixels.
toCoordThe coordinates of new range end in pixels.
-
Calculates and returns a Zoomed Range on current
ISCIAxis, usingminFractionas multiplier of range start andmaxFractionas multiplier of range end.Declaration
Objective-C
- (void)zoom:(nonnull id<ISCIRange>)range byMin:(CGFloat)minFraction max:(CGFloat)maxFraction;Swift
func zoom(_ range: any ISCIRange, byMin minFraction: Double, max maxFraction: Double)Parameters
rangeISCIRangeinstance to zoom.minFractionThe multiplier of range start.
maxFractionThe multiplier of range end.
-
From the starting
ISCIRange, scrolls to a new range by the the specified number of pixels in Min direction.Declaration
Objective-C
- (void)scrollInMinDirection:(nonnull id<ISCIRange>)range byPixels:(CGFloat)pixels;Swift
func scroll(inMinDirection range: any ISCIRange, byPixels pixels: Double)Parameters
rangeISCIRangeinstance to zoom.pixelsThe amount of pixels to scroll.
-
From the starting
ISCIRange, scrolls to a new range by the the specified number of pixels in Max direction.Declaration
Objective-C
- (void)scrollInMaxDirection:(nonnull id<ISCIRange>)range byPixels:(CGFloat)pixels;Swift
func scroll(inMaxDirection range: any ISCIRange, byPixels pixels: Double)Parameters
rangeISCIRangeinstance to zoom.pixelsThe amount of pixels to scroll.
-
From the starting
ISCIRange, scrolls to a new range by the the specified number of pixels.Declaration
Objective-C
- (void)scroll:(nonnull id<ISCIRange>)range byPixels:(CGFloat)pixels;Swift
func scroll(_ range: any ISCIRange, byPixels pixels: Double)Parameters
rangeISCIRangeinstance to zoom.pixelsThe amount of pixels to scroll.
-
Performs clipping of passed
rangeusingclipMode.Declaration
Objective-C
- (void)clipRange:(nonnull id<ISCIRange>)range toMaximum:(nonnull id<ISCIRange>)maximumRange withClipMode:(SCIClipMode)clipMode;Swift
func clipRange(_ range: any ISCIRange, toMaximum maximumRange: any ISCIRange, with clipMode: SCIClipMode)Parameters
rangeISCIRangeinstance to zoom.maximumRangeISCIRangeinstance to zoom.clipModeThe
SCIClipModevalue.
View on GitHub