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

Represents the configuration of the Chart series labels (see example).

Definition

Package:@progress/kendo-angular-charts

Selector:kendo-chart-series-item-labels

Syntax:

html
<kendo-chart>
 <kendo-chart-series>
  <kendo-chart-series-item [data]="[1, 2, 3] type="line">
   <kendo-chart-series-item-labels format="c">
   </kendo-chart-series-item-labels>
 </kendo-chart-series-item>
 </kendo-chart-series>
</kendo-chart>

Inputs

Specifies the alignment of the labels.

Specifies a function that returns the ARIA content of the labels.

Parameters:eSeriesLabelsContentArgsReturns:

string

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

distance

number

Specifies the distance between the labels when series.type is set to "donut" or "pie".

Default:

35

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 the IntlService.

Default:

'{0}'

Specifies the from labels configuration.

margin

number | Margin

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

Default:

5

Specifies the padding of the labels. A numeric value sets all paddings. Bar and Column series always apply full padding and ignore this setting.

Default:

0

Specifies the position of the labels.

rotation

number

Specifies the rotation angle of the labels.

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.