ChartSeriesDefaultsLabelsProps
Represents the props of the KendoReact ChartSeriesDefaultsLabels component (see example).
Definition
Package:@progress/kendo-react-charts
Properties
background?
string
The background color of the labels. Accepts a valid CSS color string, including hex and rgb.
color?
string
The text color of the labels. Accepts a valid CSS color string, including hex and rgb.
The function which returns the Chart series labels content. You can split the text into multiple lines by using line feed characters ("\n").
The available fields in the function argument are:
category—The category name. Available for the Area, Bar, Column, Bubble, Donut, Funnel, Pyramid, Line, and Pie series.dataItem—The original data item used to construct the point. If binding to an array, it will benull.percentage—The point value represented as a percentage value. Available for the Donut, Funnel, Pyramid and Pie series.series—The data series.value—The point value. Can be a number or object containing each bound field.runningTotal—The sum of point values since the last"runningTotal"summary point. Available for the Waterfall series.total—The sum of all previous series values. Available for the Waterfall series.
string
font?
string
The font style of the labels.
from?
SeriesDefaultsLabelsFrom
The Chart series from label configuration. The Chart displays the series labels when either the seriesDefaults.labels.visible or the seriesDefaults.labels.from.visible option is set to true.
to?
SeriesDefaultsLabelsTo
The Chart series to label configuration. The Chart displays the series labels when either the seriesDefaults.labels.visible or the seriesDefaults.labels.to.visible option is set to true.
visible?
boolean
If set to true, the Chart displays the series labels. By default, the Chart series labels are not displayed.
A function that can be used to create a custom visual for the labels.
The available argument fields are:
text—The label text.rect—The geometryRectthat defines where the visual has to be rendered.sender—The Chart instance (might beundefined).options—The label options.createVisual—A function that can be used to get the default visual.