iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIAxis
Defines the base interface to an Axis used throughout SciChart 2D.
-
Gets or sets whether current Axis is the main one in axis collection.
Note
This is the axis which is responsible for drawing grid lines.Declaration
Objective-C
@property (nonatomic) BOOL isPrimaryAxis;Swift
var isPrimaryAxis: Bool { get set } -
Gets or sets whether this axis is an
X-Axisor not.Declaration
Objective-C
@property (nonatomic) BOOL isXAxis;Swift
var isXAxis: Bool { get set } -
Gets or sets whether current Axis should be placed in the center of the chart or not.
Declaration
Objective-C
@property (nonatomic) BOOL isCenterAxis;Swift
var isCenterAxis: Bool { get set } -
Deprecated
Please use
currentCoordinateCalculatorICoordinateCalculator.isCategoryAxisCalculatorGets a value indicating whether this instance is a category axis.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL isCategoryAxis;Swift
var isCategoryAxis: Bool { get } -
Gets whether this axis is horizontal or not.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL isHorizontalAxis;Swift
var isHorizontalAxis: Bool { get } -
Gets whether this axis is flipped (e.g
Y-Axison the bottom or top, orX-Axison the left or right).Declaration
Objective-C
@property (nonatomic, readonly) BOOL isAxisFlipped;Swift
var isAxisFlipped: Bool { get } -
Gets or sets the
SCIAxisAlignmentfor this Axis.Declaration
Objective-C
@property (nonatomic) SCIAxisAlignment axisAlignment;Swift
var axisAlignment: SCIAxisAlignment { get set } -
Gets or sets the Axis Orientation, e.g. Horizontal (XAxis) or Vertical (YAxis).
Declaration
Objective-C
@property (nonatomic) SCIOrientation orientation;Swift
var orientation: SCIOrientation { get set } -
Gets or sets a value indicating whether label culling is enabled (when labels overlap) on this axis instance.
Declaration
Objective-C
@property (nonatomic) BOOL isLabelCullingEnabled;Swift
var isLabelCullingEnabled: Bool { get set } -
Gets a value indicating whether marginal labels get shifted to fit inside an axis when too long.
Declaration
Objective-C
@property (nonatomic) BOOL autoFitMarginalLabels;Swift
var autoFitMarginalLabels: Bool { get set } -
Gets or sets axis title placement.
Declaration
Objective-C
@property (nonatomic) SCIAxisTitlePlacement axisTitlePlacement;Swift
var axisTitlePlacement: SCIAxisTitlePlacement { get set } -
Gets or sets axis title orientation.
Declaration
Objective-C
@property (nonatomic) SCIAxisTitleOrientation axisTitleOrientation;Swift
var axisTitleOrientation: SCIAxisTitleOrientation { get set } -
Gets or sets axis title alignment.
Declaration
Objective-C
@property (nonatomic) SCIAlignment axisTitleAlignment;Swift
var axisTitleAlignment: SCIAlignment { get set } -
Defines axis title margins.
Note
Defines spacing to use when laying out content in the view.Declaration
Objective-C
@property (nonatomic) UIEdgeInsets axisTitleMargins;Swift
var axisTitleMargins: UIEdgeInsets { get set } -
Defines style for axis tick labels.
Declaration
Objective-C
@property (nonatomic, strong) SCIAxisTickLabelStyle *_Nonnull axisTickLabelStyle;Swift
var axisTickLabelStyle: SCIAxisTickLabelStyle { get set } -
Gets the current
ISCIAxisInteractivityHelperfor this Axis.Declaration
Objective-C
@property (strong, readonly) id<ISCIAxisInteractivityHelper> _Nonnull currentInteractivityHelper;Swift
var currentInteractivityHelper: any ISCIAxisInteractivityHelper { get } -
Defines style for axis borders.
Declaration
Objective-C
@property (nonatomic, strong) SCIAxisBorderStyle *_Nonnull axisBorderStyle;Swift
var axisBorderStyle: SCIAxisBorderStyle { get set } -
Called by the
SCIChartSurfaceinternally.Note
Returns the max range only for that axis(by the data-series on it)Declaration
Objective-C
- (nonnull id<ISCIRange>)getWindowedYRangeWithXRanges: (nullable NSDictionary<NSString *, id<ISCICoordinateCalculator>> *) xCoordCalcs;Swift
func getWindowedYRange(withXRanges xCoordCalcs: [String : any ISCICoordinateCalculator]?) -> any ISCIRangeParameters
xCoordCalcsCalculates the max range based on corresponding x coordinate calculators.
Return Value
The calculated windowed YRange.
-
Called by the
SCIChartSurfaceinternally.Note
Returns the max range only for that axis(by the data-series on it)Declaration
Objective-C
- (nonnull id<ISCIRange>)getWindowedXRangeWithYRanges: (nullable NSDictionary<NSString *, id<ISCICoordinateCalculator>> *) yCoordCalcs;Swift
func getWindowedXRange(withYRanges yCoordCalcs: [String : any ISCICoordinateCalculator]?) -> any ISCIRangeParameters
yCoordCalcsCalculates the max range based on corresponding y coordinate calculators.
Return Value
The calculated windowed YRange.
-
Scrolls current
ISCIAxisCore.visibleRangeby specified number of pixels.Note
e.g.SCIClipMode_ClipAtExtentsprevents panning outside of the Axis,SCIClipMode_Noneallows panning outside.Declaration
Objective-C
- (void)scrollByPixels:(CGFloat)pixelsToScroll clipMode:(SCIClipMode)clipMode;Swift
func scroll(byPixels pixelsToScroll: CGFloat, clipMode: SCIClipMode)Parameters
pixelsToScrollScroll N pixles from the current visible range.
clipModeDefines how scrolling behaves when you reach the edge of the Axis extents.
-
Scrolls current
ISCIAxisCore.visibleRangeby the specified number of pixels with the specified animation duration.Note
e.g.SCIClipMode_ClipAtExtentsprevents panning outside of the Axis,SCIClipMode_Noneallows panning outside.Declaration
Objective-C
- (void)scrollByPixels:(CGFloat)pixelsToScroll clipMode:(SCIClipMode)clipMode duration:(NSTimeInterval)duration;Swift
func scroll(byPixels pixelsToScroll: CGFloat, clipMode: SCIClipMode, duration: TimeInterval)Parameters
pixelsToScrollScroll N pixels from the current visible range
clipModeDefines how scrolling behaves when you reach the edge of the Axis extents.
durationThe duration of animation when zooming to extents.
-
Scrolls current
ISCIAxisCore.visibleRangeby the specified number of pixels with the specified animation duration.Declaration
Objective-C
- (void)scrollByPixels:(CGFloat)pixelsToScroll clipMode:(SCIClipMode)clipMode clipTarget:(SCIClipModeTarget)clipTarget;Swift
func scroll(byPixels pixelsToScroll: CGFloat, clipMode: SCIClipMode, clipTarget: SCIClipModeTarget)Parameters
pixelsToScrollScroll N pixels from the current visible range.
clipModeDefines how scrolling behaves when you reach the edge of the Axis extents.
clipTargetDefines target which is used for clipping.
-
Scrolls current
ISCIAxisCore.visibleRangeby the specified number of pixels with the specified animation duration.Declaration
Objective-C
- (void)scrollByPixels:(CGFloat)pixelsToScroll clipMode:(SCIClipMode)clipMode clipTarget:(SCIClipModeTarget)clipTarget duration:(NSTimeInterval)duration;Swift
func scroll(byPixels pixelsToScroll: CGFloat, clipMode: SCIClipMode, clipTarget: SCIClipModeTarget, duration: TimeInterval)Parameters
pixelsToScrollScroll N pixels from the current visible range.
clipModeDefines how scrolling behaves when you reach the edge of the Axis extents.
clipTargetDefines target which is used for clipping.
durationThe duration of animation when zooming to extents.
-
Performs zoom on current Axis, using
fromCoordas a coordinate of new range start andtoCoordas a coordinate of new range end.Declaration
Objective-C
- (void)zoomFrom:(CGFloat)fromCoord to:(CGFloat)toCoord;Swift
func zoom(from fromCoord: CGFloat, to toCoord: CGFloat)Parameters
fromCoordThe coordinate of new range start in pixels.
toCoordThe coordinate of new range end in pixels.
-
Performs zoom on current Axis, using
fromCoordas a coordinate of new range start andtoCoordas a coordinate of new range end.Declaration
Objective-C
- (void)zoomFrom:(CGFloat)fromCoord to:(CGFloat)toCoord duration:(NSTimeInterval)duration;Swift
func zoom(from fromCoord: CGFloat, to toCoord: CGFloat, duration: TimeInterval)Parameters
fromCoordThe coordinate of new range start in pixels.
toCoordThe coordinate of new range end in pixels.
durationThe duration of animation when zooming to extents.
-
Performs zoom on current Axis, using
minFractionas a multuplier of range start andmaxFractionas a multiplier of range end.Declaration
Objective-C
- (void)zoomByFractionMin:(CGFloat)minFraction max:(CGFloat)maxFraction;Swift
func zoom(byFractionMin minFraction: CGFloat, max maxFraction: CGFloat)Parameters
minFractionThe miltiplier of range start.
maxFractionThe miltiplier of range end.
-
Performs zoom on current Axis, using
minFractionas a multuplier of range start andmaxFractionas a multiplier of range end.Declaration
Objective-C
- (void)zoomByFractionMin:(CGFloat)minFraction max:(CGFloat)maxFraction duration:(NSTimeInterval)duration;Swift
func zoom(byFractionMin minFraction: CGFloat, max maxFraction: CGFloat, duration: TimeInterval)Parameters
minFractionThe miltiplier of range start.
maxFractionThe miltiplier of range end.
durationThe duration of animation when zooming to extents.
-
Perform a HitTest on this Axis at specified data point.
Declaration
Objective-C
- (nonnull SCIAxisInfo *)hitTestValue:(nonnull id<ISCIComparable>)value;Swift
func hitTestValue(_ value: any ISCIComparable) -> SCIAxisInfoParameters
valuedata value for hit test.
Return Value
The
SCIAxisInfowhich contains the HitTest results. -
Gets or sets the
ISCIAxisInfoProviderinstance associated with this axis.Declaration
Objective-C
@property (nonatomic, strong) id<ISCIAxisInfoProvider> _Nonnull axisInfoProvider;Swift
var axisInfoProvider: any ISCIAxisInfoProvider { get set } -
Gets or sets the
ISCIAxisInfoProviderinstance associated with this axis.Declaration
Objective-C
@property (nonatomic, strong, readonly) id<ISCIAxisModifierSurface> _Nonnull axisModifierSurface;Swift
var axisModifierSurface: any ISCIAxisModifierSurface { get } -
Updates measurements of axis for proper layout of its content.
Declaration
Objective-C
- (void)updateAxisMeasurements;Swift
func updateMeasurements() -
Gets current
SCIAxisLayoutStatefor this axis instance.Declaration
Objective-C
@property (nonatomic, strong, readonly) SCIAxisLayoutState *_Nonnull axisLayoutState;Swift
var axisLayoutState: SCIAxisLayoutState { get } -
Gets offset, which is used by
ISCICoordinateCalculatorof this Axis.Declaration
Objective-C
@property (nonatomic, readonly) CGFloat axisOffset;Swift
var axisOffset: CGFloat { get } -
Performs core update of axis.
Declaration
Objective-C
- (void)updateCore:(nonnull SCIRenderPassState *)renderPassState;Swift
func updateCore(_ renderPassState: SCIRenderPassState)Parameters
renderPassStateThe
SCIRenderPassStateinstance for current render pass. -
Gets the Axis identifier of this axis
Declaration
Objective-C
- (NSString *_Nullable)getAxisId;Swift
func getId() -> String?Return Value
The Axis Id
View on GitHub