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

Represents the configuration of the axis labels (see example).

Definition

Package:@progress/kendo-angular-charts

Selector:kendo-chart-axis-defaults-labels

Inputs

Specifies a content function that customizes the appearance of the labels.

Parameters:eAxisLabelContentArgsReturns:

string

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

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

Default:

0

rotation

number | LabelRotation | "auto"

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

If the axis is horizontal, can be set to "auto". In this case, the labels are rotated only if the slot size is not sufficient for the entire labels.

Default:

0

skip

number

Specifies the number of labels to skip. By default, no labels are skipped.

Default:

0

step

number

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

Default:

1

visible

boolean

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

Default:

true

Specifies a visual function that customizes the appearance of 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.