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

AxisDefaultsLabelsComponent

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

Selector

kendo-chart-axis-defaults-labels

Inputs

NameTypeDefaultDescription

content

(e: AxisLabelContentArgs) => string

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

font

string

'12px sans-serif'

Specifies the font style of the labels.

format

string

'{0}'

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

margin

number | Margin

0

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

mirror

boolean

false

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.

padding

number | Padding

0

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

rotation

number | "auto" | LabelRotation

0

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.

skip

number

0

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

step

number

1

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

visible

boolean

true

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

visual

(e: AxisLabelVisualArgs) => Element

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

Methods

notifyChanges

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.

ts
item.notifyChanges({ visible: true });
Parameters

changes

any

An object containing the updated input fields.

In this article
SelectorInputsMethods
Not finding the help you need?
Contact Support