iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

Axis Thickness - Setting axisThickness

The ISCIAxisCore.axisThickness property is used to customize the thickness of the chart’s axes. The visual representation of charts can be enhanced by controlling the width or height of the axes, depending on their orientation.

id<ISCIAxis> xTopAxis = [SCINumericAxis new]; xTopAxis.axisId = TopAxisId; xTopAxis.axisThickness = 50; id<ISCIAxis> xBottomAxis = [SCINumericAxis new]; xBottomAxis.axisId = BottomAxisId; xBottomAxis.axisThickness = 50; id<ISCIAxis> yLeftAxis = [SCINumericAxis new]; yLeftAxis.axisId = LeftAxisId; yLeftAxis.axisThickness = 50; id<ISCIAxis> yRightAxis = [SCINumericAxis new]; yRightAxis.axisId = RightAxisId; yRightAxis.axisThickness = 50;
let xTopAxis = SCINumericAxis() xTopAxis.axisId = TopAxisId xTopAxis.axisThickness = 50 let xBottomAxis = SCINumericAxis() xBottomAxis.axisId = BottomAxisId xBottomAxis.axisThickness = 50 let yLeftAxis = SCINumericAxis() yLeftAxis.axisId = LeftAxisId yLeftAxis.axisThickness = 50 let yRightAxis = SCINumericAxis() yRightAxis.axisId = RightAxisId yRightAxis.axisThickness = 50

The above code results in the following view.

Axis Alignment

NOTE: Every RenderableSeries (chart types e.g. SCIFastLineRenderableSeries, SCIFastCandlestickRenderableSeries etc.), every Annotation and some Chart Modifiers (e.g. SCIPinchZoomModifier, SCIZoomPanModifier) requires to be measured against particular axis (in other words - attached to it). You must specify the Axis ID for them via the ISCIRenderableSeries.xAxisId and ISCIRenderableSeries.xAxisId properties.

However, If you have only a single X and Y Axis setting these ID properties isn’t required. This is required only for the multiple axis cases.