SeriesLabelsComponent
Represents the configuration of the Chart series labels (see example).
Definition
Package:@progress/kendo-angular-charts
Selector:kendo-chart-series-item-labels
Syntax:
<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.
background
string
Specifies the background color of the labels.
color
string
Specifies the text color of the labels.
Specifies a function that returns the content of the labels.
distance
number
Specifies the distance between the labels when series.type is set to "donut" or "pie".
35
font
string
Specifies the font style of the labels.
'12px sans-serif'
format
string
Specifies the format of the labels. Uses the format method of the IntlService.
'{0}'
Specifies the from labels configuration.
Specifies the margin of the labels. A numeric value sets all margins.
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.
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.
false
Specifies a function that creates a custom visual for the labels.
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.
An object containing the updated input fields.