Defines the fluent API for configuring ChartLegendSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartLegendSettingsBuilder<T> where T : class
Inheritance: objectChartLegendSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartLegendSettingsBuilder<T> class.
public ChartLegendSettingsBuilder(ChartLegendSettings<T> container)
The ChartLegendSettings<T> container
Properties
Gets the ChartLegendSettings<T> container.
protected ChartLegendSettings<T> Container { get; }
Methods
Specifies the legend align.
public ChartLegendSettingsBuilder<T> Align(ChartLegendAlign value)
The value for Align
Returns:Returns the current ChartLegendSettingsBuilder<T> instance.
The background color of the legend. Accepts a valid CSS color string, including hex and rgb.
public ChartLegendSettingsBuilder<T> Background(string value)
The value for Background
Returns:Returns the current ChartLegendSettingsBuilder<T> instance.
The border of the legend.
public ChartLegendSettingsBuilder<T> Border(Action<ChartLegendBorderSettingsBuilder<T>> configurator)
The ChartLegendBorderSettingsBuilder<T> for the border setting.
Returns:Returns the current instance of ChartLegendSettingsBuilder<T> .
The legend focus highlight configuration options.
public ChartLegendSettingsBuilder<T> FocusHighlight(Action<ChartLegendFocusHighlightSettingsBuilder<T>> configurator)
The ChartLegendFocusHighlightSettingsBuilder<T> for the focushighlight setting.
Returns:Returns the current instance of ChartLegendSettingsBuilder<T> .
The legend height when the legend.orientation is set to "vertical".
public ChartLegendSettingsBuilder<T> Height(double value)
The value for Height
Returns:Returns the current ChartLegendSettingsBuilder<T> instance.
The chart inactive legend items configuration.
public ChartLegendSettingsBuilder<T> InactiveItems(Action<ChartLegendInactiveItemsSettingsBuilder<T>> configurator)
The ChartLegendInactiveItemsSettingsBuilder<T> for the inactiveitems setting.
Returns:Returns the current instance of ChartLegendSettingsBuilder<T> .
The configuration of the Chart legend item.To override the marker configuration of individual series, use the series.legendItem settings of the series.
public ChartLegendSettingsBuilder<T> Item(Action<ChartLegendItemSettingsBuilder<T>> configurator)
The ChartLegendItemSettingsBuilder<T> for the item setting.
Returns:Returns the current instance of ChartLegendSettingsBuilder<T> .
The chart legend label configuration.
public ChartLegendSettingsBuilder<T> Labels(Action<ChartLegendLabelsSettingsBuilder<T>> configurator)
The ChartLegendLabelsSettingsBuilder<T> for the labels setting.
Returns:Returns the current instance of ChartLegendSettingsBuilder<T> .
The margin of the chart legend. A numeric value will set all paddings.
public ChartLegendSettingsBuilder<T> Margin(Action<ChartLegendMarginSettingsBuilder<T>> configurator)
The ChartLegendMarginSettingsBuilder<T> for the margin setting.
Returns:Returns the current instance of ChartLegendSettingsBuilder<T> .
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 ChartLegendSettingsBuilder<T> OffsetX(double value)
The value for OffsetX
Returns:Returns the current ChartLegendSettingsBuilder<T> instance.
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 ChartLegendSettingsBuilder<T> OffsetY(double value)
The value for OffsetY
Returns:Returns the current ChartLegendSettingsBuilder<T> instance.
Specifies the legend orientation.
public ChartLegendSettingsBuilder<T> Orientation(ChartLegendOrientation value)
The value for Orientation
Returns:Returns the current ChartLegendSettingsBuilder<T> instance.
The padding of the chart legend. A numeric value will set all paddings.
public ChartLegendSettingsBuilder<T> Padding(Action<ChartLegendPaddingSettingsBuilder<T>> configurator)
The ChartLegendPaddingSettingsBuilder<T> for the padding setting.
Returns:Returns the current instance of ChartLegendSettingsBuilder<T> .
Specifies the legend position.
public ChartLegendSettingsBuilder<T> Position(ChartLegendPosition value)
The value for Position
Returns:Returns the current ChartLegendSettingsBuilder<T> instance.
If set to true the legend items will be reversed.Available in versions 2013.3.1306 and later.
public ChartLegendSettingsBuilder<T> Reverse()
Returns the current ChartLegendSettingsBuilder<T> instance.
If set to true the legend items will be reversed.Available in versions 2013.3.1306 and later.
public ChartLegendSettingsBuilder<T> Reverse(bool value)
The value for Reverse
Returns:Returns the current ChartLegendSettingsBuilder<T> instance.
The spacing between the labels in pixels when the legend.orientation is "horizontal".
public ChartLegendSettingsBuilder<T> Spacing(double value)
The value for Spacing
Returns:Returns the current ChartLegendSettingsBuilder<T> instance.
The legend title configuration options or text.
public ChartLegendSettingsBuilder<T> Title(Action<ChartLegendTitleSettingsBuilder<T>> configurator)
The ChartLegendTitleSettingsBuilder<T> for the title setting.
Returns:Returns the current instance of ChartLegendSettingsBuilder<T> .
If set to true the chart will display the legend. By default the chart legend is visible.
public ChartLegendSettingsBuilder<T> Visible(bool value)
The value for Visible
Returns:Returns the current ChartLegendSettingsBuilder<T> instance.
The legend width when the legend.orientation is set to "horizontal".
public ChartLegendSettingsBuilder<T> Width(double value)
The value for Width
Returns:Returns the current ChartLegendSettingsBuilder<T> instance.