Kendo UI ChartSeriesLabelsSettings class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartSeriesLabelsSettings<T> where T : class
Inheritance: objectChartSeriesLabelsSettings<T>
Inherited Members
Constructors
public ChartSeriesLabelsSettings()
Properties
Specifies the alignment of the labels.
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..
public string AriaTemplate { get; set; }
The handler that returns the template used for AriaTemplate
public string AriaTemplateHandler { get; set; }
The id of the script element used for AriaTemplate
public string AriaTemplateId { get; set; }
The background color of the labels. Accepts a valid CSS color string, including hex and rgb.
public string Background { get; set; }
BackgroundHandler member.
public ClientHandlerDescriptor BackgroundHandler { get; set; }
The border of the labels.
public ChartSeriesLabelsBorderSettings<T> Border { get; }
The text color of the labels. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
ColorHandler member.
public ClientHandlerDescriptor ColorHandler { get; set; }
The distance of the labels when series.type is set to "donut" or "pie".
public double? Distance { get; set; }
The font style of the labels. Accepts a valid CSS font string, for example "20px Courier New'".
public string Font { get; set; }
FontHandler member.
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.
public string Format { get; set; }
FormatHandler member.
public ClientHandlerDescriptor FormatHandler { get; set; }
The chart series from label configuration.
public ChartSeriesLabelsFromSettings<T> From { get; }
The margin of the labels. A numeric value will set all margins.
public ChartSeriesLabelsMarginSettings<T> Margin { get; }
The padding of the labels. A numeric value will set all paddings.
public ChartSeriesLabelsPaddingSettings<T> Padding { get; }
Specifies the position of the labels.
public ChartSeriesLabelsPosition? Position { get; set; }
PositionHandler member.
public ClientHandlerDescriptor PositionHandler { get; set; }
The rotation angle of the labels. By default, the labels are not rotated.
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..
public string Template { get; set; }
The handler that returns the template used for Template
public string TemplateHandler { get; set; }
The id of the script element used for Template
public string TemplateId { get; set; }
The chart series to label configuration.
public ChartSeriesLabelsToSettings<T> To { get; }
If set to true the chart will display the series labels. By default chart series labels are not displayed.
public bool? Visible { get; set; }
VisibleHandler member.
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..
public ClientHandlerDescriptor Visual { get; set; }
Methods
Serializes the settings to a Dictionary.
Serialize current instance to Dictionary
protected virtual Dictionary<string, object> SerializeSettings()