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

Represents the configuration of the Chart series labels.

Definition

Package:@progress/kendo-angular-charts

Selector:kendo-chart-series-defaults-labels

Syntax:

html
<kendo-chart>
 <kendo-chart-series-defaults>
  <kendo-chart-series-defaults-labels format="c">
  </kendo-chart-series-defaults-labels>
 </kendo-chart-series-defaults>
</kendo-chart>

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:eSeriesLabelsContentArgsReturns:

string

font

string

Specifies the font style of the labels.

Default:

'12px sans-serif'

format

string

Specifies the format of the labels. Uses the format method of IntlService.

Default:

'{0}'

Specifies the from labels configuration.

margin

number | Margin

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

Default:

0

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

Default:

0

Specifies the to labels configuration.

visible

boolean

Determines whether the Chart displays the series labels.

Default:

false

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

Parameters:eSeriesLabelsVisualArgsReturns:

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.