New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI ChartSeriesLabelsSettings class

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class ChartSeriesLabelsSettings<T> where T : class

Inheritance: objectChartSeriesLabelsSettings<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public ChartSeriesLabelsSettings()

Properties

Specifies the alignment of the labels.

C#
public ChartSeriesLabelsAlign? Align { get; set; }

The template which renders the ARIA label for the series labels.The fields which can be used in the template are: category - the category name. Available for area, bar, column, bubble, donut, line and pie 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 100% stacked charts.; series - the data series or value - the point value. Can be a number or object containing each bound field..

C#
public string AriaTemplate { get; set; }

The handler that returns the template used for AriaTemplate

C#
public string AriaTemplateHandler { get; set; }

The id of the script element used for AriaTemplate

C#
public string AriaTemplateId { get; set; }

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

C#
public string Background { get; set; }

BackgroundHandler member.

C#
public ClientHandlerDescriptor BackgroundHandler { get; set; }

The border of the labels.

C#
public ChartSeriesLabelsBorderSettings<T> Border { get; }

Chart member.

C#
public Chart<T> Chart { get; set; }

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

C#
public string Color { get; set; }

ColorHandler member.

C#
public ClientHandlerDescriptor ColorHandler { get; set; }

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

C#
public double? Distance { get; set; }

The font style of the labels. Accepts a valid CSS font string, for example "20px Courier New'".

C#
public string Font { get; set; }

FontHandler member.

C#
public ClientHandlerDescriptor FontHandler { get; set; }

The format of the labels. Uses kendo.format.Format placeholders: Area, bar, column, line, pie, radarArea, radarColumn and radarLine; {0} - value; Bubble; {0} - x value; {1} - y value; {2} - size value; {3} - category name; Bullet; {0} - value; {1} - target value; Scatter, scatterLine; {0} - x value; {1} - y value; PolarArea, polarLine and polarScatter; {0} - x value (degrees); {1} - y value; Candlestick and OHLC; {0} - open value; {1} - high value; {2} - low value; {3} - close value; {4} - category name; RangeArea, rangeBar, rangeColumn; {0} - from value or {1} - to value.

C#
public string Format { get; set; }

FormatHandler member.

C#
public ClientHandlerDescriptor FormatHandler { get; set; }

The chart series from label configuration.

C#
public ChartSeriesLabelsFromSettings<T> From { get; }

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

C#
public ChartSeriesLabelsMarginSettings<T> Margin { get; }

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

C#
public ChartSeriesLabelsPaddingSettings<T> Padding { get; }

Specifies the position of the labels.

C#
public ChartSeriesLabelsPosition? Position { get; set; }

PositionHandler member.

C#
public ClientHandlerDescriptor PositionHandler { get; set; }

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

C#
public string Rotation { get; set; }

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

C#
public string Template { get; set; }

The handler that returns the template used for Template

C#
public string TemplateHandler { get; set; }

The id of the script element used for Template

C#
public string TemplateId { get; set; }

The chart series to label configuration.

C#
public ChartSeriesLabelsToSettings<T> To { get; }

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

C#
public bool? Visible { get; set; }

VisibleHandler member.

C#
public ClientHandlerDescriptor VisibleHandler { get; set; }

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

C#
public ClientHandlerDescriptor Visual { get; set; }

Methods

Serializes the settings to a Dictionary.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Serialize current instance to Dictionary

C#
protected virtual Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>