
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
.
-
Adds axis into this
ISCIAxisLayoutStrategy
instance.Declaration
Objective-C
- (void)addAxis:(nonnull id<ISCIAxis>)axis;
Parameters
axis
The axis to add.
-
Removes axis from this ISCIAxisLayoutStrategy` instance.
Declaration
Objective-C
- (void)removeAxis:(nonnull id<ISCIAxis>)axis;
Parameters
axis
The axis to remove.
-
Measures required amount of space to place axes which are currently attached to this
ISCIAxisLayoutStrategy
instance.Declaration
Objective-C
- (void)measureAxesWithAvailableWidth:(CGFloat)width height:(CGFloat)height andChartLayoutState: (nonnull SCIChartLayoutState *)chartLayoutState;
Parameters
width
The available width in pixels.
height
The available height in pixels.
chartLayoutState
The
SCIChartLayoutState
state 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;
Parameters
left
left position of area relative to parent
SCIChartSurface
.top
top position of area relative to parent
SCIChartSurface
.right
right position of area relative to parent
SCIChartSurface
.bottom
bottom position of area relative to parent
SCIChartSurface
.