TickLabels

TickLabels class

Represents the tick-mark labels associated with tick marks on a chart axis.

class TickLabels;

Properties

PropertyTypeDescription
fontFontReadonly. Returns a Font object that represents the font of the specified TickLabels object.
autoScaleFontbooleanTrue if the text in the object changes font size when the object size changes. The default value is True.
backgroundModeBackgroundModeGets and sets the display mode of the background
rotationAnglenumberRepresents text rotation angle in clockwise.
isAutomaticRotationbooleanIndicates whether the rotation angle is automatic
numberFormatstringRepresents the format string for the TickLabels object.
numbernumberRepresents the format number for the TickLabels object.
numberFormatLinkedbooleanTrue if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).
displayNumberFormatstringReadonly. Gets and sets the display number format of tick labels.
offsetnumberGets and sets the distance of labels from the category axis. Only for category (x) axis.
readingOrderTextDirectionTypeRepresents text reading order.
directionTypeChartTextDirectionTypeGets and sets the direction of text.
tickLabelItemsTickLabelItem[]Readonly. Gets the display tick labels of the axis.
alignmentTypeTickLabelAlignmentTypeGets and sets the text alignment for the tick labels on the axis.

font

Readonly. Returns a Font object that represents the font of the specified TickLabels object.

font : Font;

autoScaleFont

True if the text in the object changes font size when the object size changes. The default value is True.

autoScaleFont : boolean;

backgroundMode

Gets and sets the display mode of the background

backgroundMode : BackgroundMode;

rotationAngle

Represents text rotation angle in clockwise.

rotationAngle : number;

Remarks

br>0: Not rotated.

255: Top to Bottom.

-90: Downward.

90: Upward.</br

isAutomaticRotation

Indicates whether the rotation angle is automatic

isAutomaticRotation : boolean;

numberFormat

Represents the format string for the TickLabels object.

numberFormat : string;

Remarks

The formatting string is same as a custom format string setting to a cell. For example, “$0”.

number

Represents the format number for the TickLabels object.

number : number;

numberFormatLinked

True if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).

numberFormatLinked : boolean;

displayNumberFormat

Readonly. Gets and sets the display number format of tick labels.

displayNumberFormat : string;

offset

Gets and sets the distance of labels from the category axis. Only for category (x) axis.

offset : number;

Remarks

The default distance is 100 percent, which represents the default spacing between the axis labels and the axis line. The value can be an integer percentage from 0 through 1000, relative to the axis label’’s font size.

readingOrder

Represents text reading order.

readingOrder : TextDirectionType;

directionType

Gets and sets the direction of text.

directionType : ChartTextDirectionType;

tickLabelItems

Readonly. Gets the display tick labels of the axis.

tickLabelItems : TickLabelItem[];

Remarks

Only available after calling Chart.Calculate() method.

alignmentType

Gets and sets the text alignment for the tick labels on the axis.

alignmentType : TickLabelAlignmentType;