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

Configures the Chart legend settings.

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartLegend

Inheritance: objectChartLegend

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

Constructors

Initializes a new instance of the ChartLegend class.

C#
public ChartLegend()

Properties

Gets or sets the legend align option

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

Gets or sets the legend background color

C#
public string Background { get; set; }

Gets or sets the legend border

C#
public ChartElementBorder Border { get; set; }

Gets or sets the legend labels color.

C#
public string Color { get; set; }
Property Value:

Specify the color of the labels.

The legend focus highlight configuration options.

C#
public ChartLegendFocusHighlightSettings FocusHighlight { get; set; }

Gets or sets the legend font.

C#
public string Font { get; set; }
Property Value:

Specify a font in CSS format. For example "16px Arial,Helvetica,sans-serif".

Gets or sets the legend height

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

Gets or sets the legend item

C#
public ChartLegendItem Item { get; set; }

Gets or sets the legend labels

C#
public ChartLegendLabels Labels { get; set; }

Gets or sets the legend margin

C#
public ChartSpacing Margin { get; set; }

Gets or sets the legend X-offset from its position.

C#
public int? OffsetX { get; set; }

Gets or sets the legend Y-offset from its position.

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

Gets or sets the legend orientation

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

Gets or sets the legend margin

C#
public ChartSpacing Padding { get; set; }

Gets or sets the legend position.

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

The default value is Right

Gets or sets the legend reverse

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 title of the legend.

C#
public ChartTitle Title { get; set; }

Gets or sets a value indicating if the legend is visible

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

Gets or sets the legend width

C#
public int? Width { get; set; }

Methods

Creates a new ChartLegendSerializer.

C#
public IChartSerializer CreateSerializer()
Returns:

IChartSerializer

The ChartLegendSerializer instance.