ChartLegend
Configures the Chart legend settings.
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class ChartLegend
Inheritance: objectChartLegend
Inherited Members
Constructors
Initializes a new instance of the ChartLegend class.
public ChartLegend()
Properties
Gets or sets the legend align option
public ChartLegendAlign? Align { get; set; }
Gets or sets the legend background color
public string Background { get; set; }
Gets or sets the legend border
public ChartElementBorder Border { get; set; }
Gets or sets the legend labels color.
public string Color { get; set; }
Specify the color of the labels.
The legend focus highlight configuration options.
public ChartLegendFocusHighlightSettings FocusHighlight { get; set; }
Gets or sets the legend font.
public string Font { get; set; }
Specify a font in CSS format. For example "16px Arial,Helvetica,sans-serif".
Gets or sets the legend item
public ChartLegendItem Item { get; set; }
Gets or sets the legend labels
public ChartLegendLabels Labels { get; set; }
Gets or sets the legend margin
public ChartSpacing Margin { get; set; }
Gets or sets the legend orientation
public ChartLegendOrientation? Orientation { get; set; }
Gets or sets the legend margin
public ChartSpacing Padding { get; set; }
Gets or sets the legend position.
public ChartLegendPosition? Position { get; set; }
The default value is Right
The spacing between the labels in pixels when the legend.orientation is "horizontal".
public double? Spacing { get; set; }
The title of the legend.
public ChartTitle Title { get; set; }
Gets or sets a value indicating if the legend is visible
public bool? Visible { get; set; }
Methods
Creates a new ChartLegendSerializer.
public IChartSerializer CreateSerializer()
The ChartLegendSerializer instance.