Kendo UI ChartLegendLabelsSettings class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartLegendLabelsSettings<T> where T : class
Inheritance: objectChartLegendLabelsSettings<T>
Inherited Members
Constructors
public ChartLegendLabelsSettings()
Properties
The text color of the labels. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
The font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".
public string Font { get; set; }
The margin of the labels. A numeric value will set all margins.
public ChartLegendLabelsMarginSettings<T> Margin { get; }
The padding of the labels. A numeric value will set all paddings.
public ChartLegendLabelsPaddingSettings<T> Padding { get; }
The template which renders the labels.The fields which can be used in the template are: text - the text the legend item.; series - the data series.; value - the point value. (only for donut and pie charts) or percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts..
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; }
Methods
Serializes the settings to a Dictionary.
Serialize current instance to Dictionary
protected virtual Dictionary<string, object> SerializeSettings()