XAxisLabelsComponent
Represents the labels configuration of the X axis.
Definition
Package:@progress/kendo-angular-charts
Selector:kendo-chart-x-axis-item-labels
Inputs
background
string
Specifies the background color of the labels.
color
string
Specifies the text color of the labels.
Specifies a function that returns the content of the labels.
culture
string
Specifies the culture information for the labels.
Specifies the date formats for the labels.
font
string
Specifies the font style of the labels.
'12px sans-serif'
format
string
Specifies the format of the labels.
mirror
boolean
Specifies whether the labels are mirrored.
Specifies the padding of the labels. A numeric value sets all paddings.
0
Specifies the position of the axis labels. By default, labels are positioned next to the axis.
'onAxis'
rotation
number | LabelRotation | "auto"
Specifies the rotation angle of the labels. By default, the labels are not rotated. Can be set to "auto".
In this case, the labels are rotated only if the slot size is not sufficient for the entire labels.
0
skip
number
Specifies the number of labels to skip.
1
step
number
Specifies the label rendering step—renders every nth label. By default, every label is rendered.
1
visible
boolean
Determines whether the Chart displays the X-axis labels. By default, the X-axis labels are visible.
true
Specifies a function that returns a custom visual for the labels.
Methods
Updates the component fields with the specified values and refreshes the Chart.
Use this method when the configuration values cannot be set through the template.
An object containing the updated input fields.