Kendo.Mvc.UI.Fluent.ChartLegendSettingsBuilder

Defines the fluent API for configuring ChartLegendSettings

Methods

Background(System.String)

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

Parameters

value System.String

The value for Background

Border(System.Action<Kendo.Mvc.UI.Fluent.ChartLegendBorderSettingsBuilder<T>>)

The border of the legend.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ChartLegendBorderSettingsBuilder>

The configurator for the border setting.

Height(System.Double)

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

Parameters

value System.Double

The value for Height

InactiveItems(System.Action<Kendo.Mvc.UI.Fluent.ChartLegendInactiveItemsSettingsBuilder<T>>)

The chart inactive legend items configuration.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ChartLegendInactiveItemsSettingsBuilder>

The configurator for the inactiveitems setting.

Item(System.Action<Kendo.Mvc.UI.Fluent.ChartLegendItemSettingsBuilder<T>>)

The chart legend item configuration.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ChartLegendItemSettingsBuilder>

The configurator for the item setting.

Labels(System.Action<Kendo.Mvc.UI.Fluent.ChartLegendLabelsSettingsBuilder<T>>)

The chart legend label configuration.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ChartLegendLabelsSettingsBuilder>

The configurator for the labels setting.

Margin(System.Action<Kendo.Mvc.UI.Fluent.ChartLegendMarginSettingsBuilder<T>>)

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

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ChartLegendMarginSettingsBuilder>

The configurator for the margin setting.

OffsetX(System.Double)

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.

Parameters

value System.Double

The value for OffsetX

OffsetY(System.Double)

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.

Parameters

value System.Double

The value for OffsetY

Padding(System.Action<Kendo.Mvc.UI.Fluent.ChartLegendPaddingSettingsBuilder<T>>)

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

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ChartLegendPaddingSettingsBuilder>

The configurator for the padding setting.

Reverse(System.Boolean)

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

Parameters

value System.Boolean

The value for Reverse

Reverse

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

Spacing(System.Double)

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

Parameters

value System.Double

The value for Spacing

Visible(System.Boolean)

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

Parameters

value System.Boolean

The value for Visible

Width(System.Double)

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

Parameters

value System.Double

The value for Width

Align(Kendo.Mvc.UI.ChartLegendAlign)

Specifies the legend align.

Parameters

value Kendo.Mvc.UI.ChartLegendAlign

The value for Align

Orientation(Kendo.Mvc.UI.ChartLegendOrientation)

Specifies the legend orientation.

Parameters

value Kendo.Mvc.UI.ChartLegendOrientation

The value for Orientation

Position(Kendo.Mvc.UI.ChartLegendPosition)

Specifies the legend position.

Parameters

value Kendo.Mvc.UI.ChartLegendPosition

The value for Position