iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIHorizontalAxisLayoutStrategy
@interface SCIHorizontalAxisLayoutStrategy : SCIAxisLayoutStrategyBase
Base layout strategy class for horizontal layout of axes.
-
Helper method which measures required size of axis for this horizontal layout strategy.
Declaration
Objective-C
+ (CGFloat)getRequiredAxisSizeFrom: (nonnull SCIAxisLayoutState *)axisLayoutState;Swift
class func getRequiredAxisSize(from axisLayoutState: SCIAxisLayoutState) -> CGFloatParameters
axisLayoutStateThe layout state of
ISCIAxis.Return Value
The desired size in pixels.
-
Helper method for layout axes horizontally from top to bottom.
Declaration
Objective-C
+ (void)layoutAxesFromTopToBottom:(nonnull NSArray<id<ISCIAxis>> *)axes withLeft:(CGFloat)left top:(CGFloat)top right:(CGFloat)right;Swift
class func layoutAxesFromTop(toBottom axes: [any ISCIAxis], withLeft left: CGFloat, top: CGFloat, right: CGFloat)Parameters
axesThe axes to perform layout on.
leftThe left bounds for this layout strategy.
topThe top bounds for this layout strategy.
rightThe right bounds for this layout strategy.
-
Helper method for layout axes horizontally from bottom to top.
Declaration
Objective-C
+ (void)layoutAxesFromBottomToTop:(nonnull NSArray<id<ISCIAxis>> *)axes withLeft:(CGFloat)left bottom:(CGFloat)bottom right:(CGFloat)right;Swift
class func layoutAxesFromBottom(toTop axes: [any ISCIAxis], withLeft left: CGFloat, bottom: CGFloat, right: CGFloat)Parameters
axesThe axes to perform layout on.
leftThe left bounds for this layout strategy.
bottomThe bottom bounds for this layout strategy.
rightThe right bounds for this layout strategy.
View on GitHub