--- title: ChartSeriesDefaultsLabelsProps description: "Learn how to build custom functionality when working with the React Charts by Kendo UI with the help of the ChartSeriesDefaultsLabelsProps." api_reference: true type: inner_api slug: api_charts_chartseriesdefaultslabelsprops --- # ChartSeriesDefaultsLabelsProps Represents the props of the KendoReact ChartSeriesDefaultsLabels component ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/series#toc-default-series-configuration)).
Name Type Default Description
#### background? string The background color of the labels. Accepts a valid CSS color string, including hex and rgb.
#### border? [Border]({% slug api_charts_border %}) The border of the labels.
#### color? string The text color of the labels. Accepts a valid CSS color string, including hex and rgb.
#### content? (e: any) => string 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 be `null`. - `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.
#### font? string The font style of the labels.
#### format? string The format of the labels. Uses the [`format`](https://www.telerik.com/kendo-react-ui/components/intl/api/intlservice#toc-format) method of IntlService.
#### from? SeriesDefaultsLabelsFrom The Chart series `from` label configuration. The Chart displays the series labels when either the [`seriesDefaults.labels.visible`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartseriesdefaultslabelsprops#toc-visible) or the [`seriesDefaults.labels.from.visible`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartseriesdefaultslabelsfromprops#toc-visible) option is set to `true`.
#### margin? number | [Margin]({% slug api_charts_margin %}) The margin of the labels. A numeric value sets all margins.
#### padding? number | [Padding]({% slug api_charts_padding %}) The padding of the labels. A numeric value sets all margins.
#### to? SeriesDefaultsLabelsTo The Chart series `to` label configuration. The Chart displays the series labels when either the [`seriesDefaults.labels.visible`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartseriesdefaultslabelsprops#toc-visible) or the [`seriesDefaults.labels.to.visible`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartseriesdefaultslabelstoprops#toc-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.
#### visual? (e: [SeriesLabelsVisualArgs]({% slug api_charts_serieslabelsvisualargs %})) => Element 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 geometry [`Rect`](https://www.telerik.com/kendo-react-ui/components/drawing/api/geometry/rect) that defines where the visual has to be rendered. - `sender`—The Chart instance (might be `undefined`). - `options`—The label options. - `createVisual`—A function that can be used to get the default visual.