Kendo UI ChartLegendSettings class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartLegendSettings<T> where T : class
Inheritance: objectChartLegendSettings<T>
Inherited Members
Constructors
public ChartLegendSettings()
Properties
Specifies the legend align.
public ChartLegendAlign? Align { get; set; }
The background color of the legend. Accepts a valid CSS color string, including hex and rgb.
public string Background { get; set; }
The border of the legend.
public ChartLegendBorderSettings<T> Border { get; }
The legend focus highlight configuration options.
public ChartLegendFocusHighlightSettings<T> FocusHighlight { get; }
The legend height when the legend.orientation is set to "vertical".
public double? Height { get; set; }
The chart inactive legend items configuration.
public ChartLegendInactiveItemsSettings<T> InactiveItems { get; }
The configuration of the Chart legend item.To override the marker configuration of individual series, use the series.legendItem settings of the series.
public ChartLegendItemSettings<T> Item { get; }
The chart legend label configuration.
public ChartLegendLabelsSettings<T> Labels { get; }
The margin of the chart legend. A numeric value will set all paddings.
public ChartLegendMarginSettings<T> Margin { get; }
The X offset of the chart legend. The offset is relative to the default position of the legend. For instance, a value of 20 will move the legend 20 pixels to the right of its initial position. A negative value will move the legend to the left of its current position.
public double? OffsetX { get; set; }
The Y offset of the chart legend. The offset is relative to the current position of the legend. For instance, a value of 20 will move the legend 20 pixels down from its initial position. A negative value will move the legend upwards from its current position.
public double? OffsetY { get; set; }
Specifies the legend orientation.
public ChartLegendOrientation? Orientation { get; set; }
The padding of the chart legend. A numeric value will set all paddings.
public ChartLegendPaddingSettings<T> Padding { get; }
Specifies the legend position.
public ChartLegendPosition? Position { get; set; }
If set to true the legend items will be reversed.Available in versions 2013.3.1306 and later.
public bool? Reverse { get; set; }
The spacing between the labels in pixels when the legend.orientation is "horizontal".
public double? Spacing { get; set; }
The legend title configuration options or text.
public ChartLegendTitleSettings<T> Title { get; }
If set to true the chart will display the legend. By default the chart legend is visible.
public bool? Visible { get; set; }
Methods
Serializes the settings to a Dictionary.
Serialize current instance to Dictionary
protected virtual Dictionary<string, object> SerializeSettings()