ChartLegendBuilder
Defines the fluent interface for configuring the ChartLegend.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ChartLegendBuilder
Inheritance: objectChartLegendBuilder
Inherited Members
Constructors
Initializes a new instance of the ChartLegendBuilder class.
public ChartLegendBuilder(ChartLegend chartLegend)
The chart legend.
Methods
Sets the legend align option
public ChartLegendBuilder Align(ChartLegendAlign align)
The legend align option.
Returns:Sets the legend background color
public ChartLegendBuilder Background(string background)
The background color.
Returns:Configures the legend border
public ChartLegendBuilder Border(Action<ChartBorderBuilder> configurator)
The border configuration action
Returns:Sets the legend border
public ChartLegendBuilder Border(int width, string color, ChartDashType dashType)
The legend border width.
colorstringThe legend border color (CSS syntax).
dashTypeChartDashTypeThe legend border dash type.
Returns:Sets the legend labels color
public ChartLegendBuilder Color(string color)
The labels color (CSS format).
Returns:The legend focus highlight configuration options.
public ChartLegendBuilder FocusHighlight(Action<ChartLegendFocusHighlightSettingsBuilder> configurator)
The configurator for the focus highlight setting.
Returns:Sets the legend labels font
public ChartLegendBuilder Font(string font)
The legend labels font (CSS format).
Returns:Sets the legend height
Configures the legend item
public ChartLegendBuilder Item(Action<ChartLegendItemBuilder> configurator)
The legend item configuration action
Returns:Configures the legend labels
public ChartLegendBuilder Labels(Action<ChartLegendLabelsBuilder> configurator)
The labels configuration action
Returns:Sets the legend margin
Sets the legend orientation
public ChartLegendBuilder Orientation(ChartLegendOrientation orientation)
The legend orientation.
Returns:Sets the legend padding
Sets the legend position
public ChartLegendBuilder Position(ChartLegendPosition position)
The legend position.
Returns:Reverses the order of the legend items
public ChartLegendBuilder Reverse(bool reverse)
True if the items should be reversed; false otherwise.
Returns:The spacing between the labels in pixels when the legend.orientation is "horizontal".
public ChartLegendBuilder Spacing(double value)
The value for Spacing
Returns:The legend title configuration options.
public ChartLegendBuilder Title(Action<ChartTitleBuilder> configurator)
The configurator for the title setting.
Returns:Sets the legend visibility
public ChartLegendBuilder Visible(bool visible)
The legend visibility.
Returns:Sets the legend width