Kendo.Mvc.UI.ChartSeriesLabelsSettings

Kendo UI ChartSeriesLabelsSettings class

Properties

Background

The background color of the labels. Accepts a valid CSS color string, including hex and rgb.

Border

The border of the labels.

Color

The text color of the labels. Accepts a valid CSS color string, including hex and rgb.

Distance

The distance of the labels when series.type is set to "donut" or "pie".

Font

The font style of the labels.

Format

The format of the labels. Uses kendo.format.

Margin

The margin of the labels. A numeric value will set all margins.

Padding

The padding of the labels. A numeric value will set all paddings.

Rotation

The rotation angle of the labels. By default, the labels are not rotated.

Template

The template which renders the chart series label.The fields which can be used in the template are: category - the category name. Available for area, bar, column, bubble, donut, line, pie and waterfall series.; dataItem - the original data item used to construct the point. Will be null if binding to array.; percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts.; series - the data series; stackValue - the cumulative point value on the stack. Available only for stackable 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 waterfall series. or total - the sum of all previous series values. Available for waterfall series..

TemplateId

The id of the script element used for Template

Visible

If set to true the chart will display the series labels. By default chart series labels are not displayed.

Visual

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 kendo.geometry.Rect that defines where the visual should be rendered.; options - the label options.; createVisual - a function that can be used to get the default visual.; sender - the chart instance (may be undefined).; value - The point value.; category - The point category.; stackValue - The cumulative point value on the stack. Available only for the stackable series.; dataItem - The point dataItem.; series - The point series.; percentage - The point value that is represented as a percentage value. Available only for the Donut, Pie, and 100% stacked charts.; runningTotal - The sum of point values from the last runningTotal summary point onwards. Available for the Waterfall series. or total - The sum of all previous series values. Available for the Waterfall series..

From

The chart series from label configuration.

To

The chart series to label configuration.

Align

Specifies the alignment of the labels.

Position

Specifies the position of the labels.

Methods

SerializeSettings

Serialize current instance to Dictionary