iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCILayoutManager
@protocol ISCILayoutManager <ISCIAttachable>
Defines interface to a Layout Manager, which may be used to layout SCIChartSurface parts.
-
Attaches axis to parent
SCIChartSurfacevia current LayoutManager.Declaration
Objective-C
- (void)attachAxis:(nonnull id<ISCIAxis>)axis isXAxis:(BOOL)isXAxis;Swift
func attach(_ axis: any ISCIAxis, isXAxis: Bool)Parameters
axisThe
ISCIAxisto attach.isXAxisThe value indicating whether the axis is XAxis or YAxis.
-
Detaches axis from parent
SCIChartSurfacevia current LayoutManager.Declaration
Objective-C
- (void)detachAxis:(nonnull id<ISCIAxis>)axis;Swift
func detach(_ axis: any ISCIAxis)Parameters
axisThe
ISCIAxisto detach. -
Called when axis is about to change its placement.
Declaration
Objective-C
- (void)onAxisPlacementChanged:(nonnull id<ISCIAxis>)axis oldAxisAlignment:(SCIAxisAlignment)oldAxisAlignment oldIsCenterAxis:(BOOL)oldIsCenterAxis newAxisAlignment:(SCIAxisAlignment)newAxisAlignment newIsCenterAxis:(BOOL)newIsCenterAxis;Swift
func onAxisPlacementChanged(_ axis: any ISCIAxis, oldAxisAlignment: SCIAxisAlignment, oldIsCenterAxis: Bool, newAxisAlignment: SCIAxisAlignment, newIsCenterAxis: Bool)Parameters
axisaxis which changes its position.
oldAxisAlignmentold axis alignment value.
oldIsCenterAxisold isCenterAxis value.
newAxisAlignmentnew axis alignment value.
newIsCenterAxisnew isCenterAxis value.
-
Called during render pass of chart before rendering and should update positions of chart parts.
Declaration
Objective-C
- (CGSize)onLayoutChartWithAvailableSize:(CGSize)size;Swift
func onLayoutChart(withAvailableSize size: CGSize) -> CGSizeParameters
sizeavailable viewport size.
Return Value
The measured size of viewport.
View on GitHub