iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIAxisLayoutStrategy
@protocol ISCIAxisLayoutStrategy <NSObject>
Defines interface for layout strategy which determines how axes should be placed in SCIChartSurface.
-
Measures required amount of space to place axes which are currently attached to this
ISCIAxisLayoutStrategyinstance.Declaration
Objective-C
- (void)measureAxesWithAvailableWidth:(CGFloat)width height:(CGFloat)height andChartLayoutState: (nonnull SCIChartLayoutState *)chartLayoutState;Swift
func measureAxes(withAvailableWidth width: CGFloat, height: CGFloat, andChartLayoutState chartLayoutState: SCIChartLayoutState)Parameters
widthThe available width in pixels.
heightThe available height in pixels.
chartLayoutStateThe
SCIChartLayoutStatestate for this layout pass which strategy should modify to set desired size. -
Perform layout on axes which use this layout strategy.
Declaration
Objective-C
- (void)layoutWithLeft:(CGFloat)left top:(CGFloat)top right:(CGFloat)right bottom:(CGFloat)bottom;Swift
func layout(withLeft left: CGFloat, top: CGFloat, right: CGFloat, bottom: CGFloat)Parameters
leftleft position of area relative to parent
SCIChartSurface.toptop position of area relative to parent
SCIChartSurface.rightright position of area relative to parent
SCIChartSurface.bottombottom position of area relative to parent
SCIChartSurface.
View on GitHub