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

Defines the fluent API for configuring ChartLegendSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class ChartLegendSettingsBuilder<T> where T : class

Inheritance: objectChartLegendSettingsBuilder<T>

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 ChartLegendSettingsBuilder<T> class.

C#
public ChartLegendSettingsBuilder(ChartLegendSettings<T> container)
Parameters:containerChartLegendSettings<T>

The ChartLegendSettings<T> container

Properties

Gets the ChartLegendSettings<T> container.

C#
protected ChartLegendSettings<T> Container { get; }

Methods

Specifies the legend align.

C#
public ChartLegendSettingsBuilder<T> Align(ChartLegendAlign value)
Parameters:valueChartLegendAlign

The value for Align

Returns:

ChartLegendSettingsBuilder<T>

Returns the current ChartLegendSettingsBuilder<T> instance.

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

C#
public ChartLegendSettingsBuilder<T> Background(string value)
Parameters:valuestring

The value for Background

Returns:

ChartLegendSettingsBuilder<T>

Returns the current ChartLegendSettingsBuilder<T> instance.

The border of the legend.

C#
public ChartLegendSettingsBuilder<T> Border(Action<ChartLegendBorderSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendBorderSettingsBuilder<T>>

The ChartLegendBorderSettingsBuilder<T> for the border setting.

Returns:

ChartLegendSettingsBuilder<T>

Returns the current instance of ChartLegendSettingsBuilder<T> .

The legend focus highlight configuration options.

C#
public ChartLegendSettingsBuilder<T> FocusHighlight(Action<ChartLegendFocusHighlightSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendFocusHighlightSettingsBuilder<T>>

The ChartLegendFocusHighlightSettingsBuilder<T> for the focushighlight setting.

Returns:

ChartLegendSettingsBuilder<T>

Returns the current instance of ChartLegendSettingsBuilder<T> .

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

C#
public ChartLegendSettingsBuilder<T> Height(double value)
Parameters:valuedouble

The value for Height

Returns:

ChartLegendSettingsBuilder<T>

Returns the current ChartLegendSettingsBuilder<T> instance.

The chart inactive legend items configuration.

C#
public ChartLegendSettingsBuilder<T> InactiveItems(Action<ChartLegendInactiveItemsSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendInactiveItemsSettingsBuilder<T>>

The ChartLegendInactiveItemsSettingsBuilder<T> for the inactiveitems setting.

Returns:

ChartLegendSettingsBuilder<T>

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.

C#
public ChartLegendSettingsBuilder<T> Item(Action<ChartLegendItemSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendItemSettingsBuilder<T>>

The ChartLegendItemSettingsBuilder<T> for the item setting.

Returns:

ChartLegendSettingsBuilder<T>

Returns the current instance of ChartLegendSettingsBuilder<T> .

The chart legend label configuration.

C#
public ChartLegendSettingsBuilder<T> Labels(Action<ChartLegendLabelsSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendLabelsSettingsBuilder<T>>

The ChartLegendLabelsSettingsBuilder<T> for the labels setting.

Returns:

ChartLegendSettingsBuilder<T>

Returns the current instance of ChartLegendSettingsBuilder<T> .

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

C#
public ChartLegendSettingsBuilder<T> Margin(Action<ChartLegendMarginSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendMarginSettingsBuilder<T>>

The ChartLegendMarginSettingsBuilder<T> for the margin setting.

Returns:

ChartLegendSettingsBuilder<T>

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.

C#
public ChartLegendSettingsBuilder<T> OffsetX(double value)
Parameters:valuedouble

The value for OffsetX

Returns:

ChartLegendSettingsBuilder<T>

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.

C#
public ChartLegendSettingsBuilder<T> OffsetY(double value)
Parameters:valuedouble

The value for OffsetY

Returns:

ChartLegendSettingsBuilder<T>

Returns the current ChartLegendSettingsBuilder<T> instance.

Specifies the legend orientation.

C#
public ChartLegendSettingsBuilder<T> Orientation(ChartLegendOrientation value)
Parameters:valueChartLegendOrientation

The value for Orientation

Returns:

ChartLegendSettingsBuilder<T>

Returns the current ChartLegendSettingsBuilder<T> instance.

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

C#
public ChartLegendSettingsBuilder<T> Padding(Action<ChartLegendPaddingSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendPaddingSettingsBuilder<T>>

The ChartLegendPaddingSettingsBuilder<T> for the padding setting.

Returns:

ChartLegendSettingsBuilder<T>

Returns the current instance of ChartLegendSettingsBuilder<T> .

Specifies the legend position.

C#
public ChartLegendSettingsBuilder<T> Position(ChartLegendPosition value)
Parameters:valueChartLegendPosition

The value for Position

Returns:

ChartLegendSettingsBuilder<T>

Returns the current ChartLegendSettingsBuilder<T> instance.

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

C#
public ChartLegendSettingsBuilder<T> Reverse()
Returns:

ChartLegendSettingsBuilder<T>

Returns the current ChartLegendSettingsBuilder<T> instance.

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

C#
public ChartLegendSettingsBuilder<T> Reverse(bool value)
Parameters:valuebool

The value for Reverse

Returns:

ChartLegendSettingsBuilder<T>

Returns the current ChartLegendSettingsBuilder<T> instance.

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

C#
public ChartLegendSettingsBuilder<T> Spacing(double value)
Parameters:valuedouble

The value for Spacing

Returns:

ChartLegendSettingsBuilder<T>

Returns the current ChartLegendSettingsBuilder<T> instance.

The legend title configuration options or text.

C#
public ChartLegendSettingsBuilder<T> Title(Action<ChartLegendTitleSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendTitleSettingsBuilder<T>>

The ChartLegendTitleSettingsBuilder<T> for the title setting.

Returns:

ChartLegendSettingsBuilder<T>

Returns the current instance of ChartLegendSettingsBuilder<T> .

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

C#
public ChartLegendSettingsBuilder<T> Visible(bool value)
Parameters:valuebool

The value for Visible

Returns:

ChartLegendSettingsBuilder<T>

Returns the current ChartLegendSettingsBuilder<T> instance.

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

C#
public ChartLegendSettingsBuilder<T> Width(double value)
Parameters:valuedouble

The value for Width

Returns:

ChartLegendSettingsBuilder<T>

Returns the current ChartLegendSettingsBuilder<T> instance.