TickLabels
TickLabels class
Represents the tick-mark labels associated with tick marks on a chart axis.
class TickLabels;
Properties
Property | Type | Description |
---|---|---|
font | Font | Readonly. Returns a Font object that represents the font of the specified TickLabels object. |
autoScaleFont | boolean | True if the text in the object changes font size when the object size changes. The default value is True. |
backgroundMode | BackgroundMode | Gets and sets the display mode of the background |
rotationAngle | number | Represents text rotation angle in clockwise. |
isAutomaticRotation | boolean | Indicates whether the rotation angle is automatic |
numberFormat | string | Represents the format string for the TickLabels object. |
number | number | Represents the format number for the TickLabels object. |
numberFormatLinked | boolean | 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). |
displayNumberFormat | string | Readonly. Gets and sets the display number format of tick labels. |
offset | number | Gets and sets the distance of labels from the category axis. Only for category (x) axis. |
readingOrder | TextDirectionType | Represents text reading order. |
directionType | ChartTextDirectionType | Gets and sets the direction of text. |
tickLabelItems | TickLabelItem[] | Readonly. Gets the display tick labels of the axis. |
alignmentType | TickLabelAlignmentType | Gets 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;