iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIViewportManagerBase
@protocol ISCIViewportManagerBase <ISCIAttachable>
Defines the interface to a ViewportManager, which may be used to intercept the X-Axis and Y-Axis ranging during render and invalidate the parent surface.
-
Called when the VisibleRange changes for an axis.
Note
Override in derived types to set a custom value.Declaration
Objective-C
- (void)onVisibleRangeChanged:(nonnull id<ISCIAxisCore>)axis oldRange:(nonnull id<ISCIRange>)oldRange newRange:(nonnull id<ISCIRange>)newRange isAnimating:(BOOL)isAnimating;Swift
func onVisibleRangeChanged(_ axis: any ISCIAxisCore, oldRange: any ISCIRange, newRange: any ISCIRange, isAnimating: Bool)Parameters
axisTHe axis instance.
oldRangeThe old VisibleRange.
newRangeThe new VisibleRange.
isAnimatingFlag indicating whether the VisibleRange is animating.
-
Called during render to update
XAxisISCIAxisCore.visibleRange.Note
Override in derived types to set a custom value.Declaration
Objective-C
- (void)updateXAxis:(nonnull id<ISCIAxisCore>)xAxis;Swift
func updateXAxis(_ xAxis: any ISCIAxisCore)Parameters
xAxisThe XAxis to update
-
Called during render to update
YAxisISCIAxisCore.visibleRange.Note
Override in derived types to set a custom value.Declaration
Objective-C
- (void)updateYAxis:(nonnull id<ISCIAxisCore>)yAxis;Swift
func updateYAxis(_ yAxis: any ISCIAxisCore)Parameters
yAxisThe YAxis to update
-
Called during render to perform autoranging.
Note
Override in derived types to set a custom value.Declaration
Objective-C
- (void)tryPerformAutoRange:(nonnull id<ISCIAxisCore>)axis;Swift
func tryPerformAutoRange(_ axis: any ISCIAxisCore)Parameters
axisThe
ISCIAxisCoreinstance to perform autorange on.
View on GitHub