New to Kendo UI for AngularStart a free 30-day trial

Represents the Y-axis labels configuration.

Definition

Package:@progress/kendo-angular-charts

Selector:kendo-chart-y-axis-item-labels

Inputs

Specifies the background color of the labels.

Specifies the border configuration of the labels.

color

string

Specifies the text color of the labels.

Specifies a function that returns the content of the labels.

Parameters:eAxisLabelContentArgsReturns:

string

culture

string

Specifies the culture used for formatting the labels.

Specifies the date formats for displaying the labels.

font

string

Specifies the font style of the labels.

Default:

'12px sans-serif'

format

string

Specifies the format for displaying the labels. Uses the format method of IntlService. Contains one placeholder ("{0}") which represents the category value.

Default:

'{0}'

margin

number | Margin

Specifies the margin of the labels. A numeric value sets all margins.

Default:

0

mirror

boolean

Determines whether the Chart mirrors the axis labels and ticks. If the labels are normally on the left side of the axis, the mirroring of the axis renders them to the right.

Default:

false

Specifies the padding of the labels. A numeric value sets all paddings.

Default:

0

Specifies the position of the axis labels. By default, labels are positioned next to the axis.

Default:

'onAxis'

rotation

number | LabelRotation | "auto"

Specifies the rotation angle of the labels. By default, the labels are not rotated.

Default:

0

skip

number

Specifies the number of labels to skip.

Default:

0

step

number

Specifies the label rendering step—renders every nth label. By default, every label is rendered.

Default:

1

visible

boolean

Determines whether the Chart displays the Y-axis labels. By default, the Y-axis labels are visible.

Default:

true

Specifies a function that returns a custom visual for the labels.

Parameters:eAxisLabelVisualArgsReturns:

Element

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.

Parameters:changesany

An object containing the updated input fields.