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

Kendo UI ChartLegendSettings class

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectChartLegendSettings<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 ChartLegendSettings()

Properties

Specifies the legend align.

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

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

C#
public string Background { get; set; }

The border of the legend.

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

Chart member.

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

The legend focus highlight configuration options.

C#
public ChartLegendFocusHighlightSettings<T> FocusHighlight { get; }

The legend height when the legend.orientation is set to "vertical".

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

The chart inactive legend items configuration.

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

C#
public ChartLegendItemSettings<T> Item { get; }

The chart legend label configuration.

C#
public ChartLegendLabelsSettings<T> Labels { get; }

The margin of the chart legend. A numeric value will set all paddings.

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

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

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

Specifies the legend orientation.

C#
public ChartLegendOrientation? Orientation { get; set; }

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

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

Specifies the legend position.

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

If set to true the legend items will be reversed.Available in versions 2013.3.1306 and later.

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

The spacing between the labels in pixels when the legend.orientation is "horizontal".

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

The legend title configuration options or text.

C#
public ChartLegendTitleSettings<T> Title { get; }

If set to true the chart will display the legend. By default the chart legend is visible.

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

The legend width when the legend.orientation is set to "horizontal".

C#
public double? Width { 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>