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

Defines the fluent API for configuring ChartLegendLabelsSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectChartLegendLabelsSettingsBuilder<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 ChartLegendLabelsSettingsBuilder<T> class.

C#
public ChartLegendLabelsSettingsBuilder(ChartLegendLabelsSettings<T> container)
Parameters:containerChartLegendLabelsSettings<T>

The ChartLegendLabelsSettings<T> container

Properties

Gets the ChartLegendLabelsSettings<T> container.

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

Methods

The text color of the labels. Accepts a valid CSS color string, including hex and rgb.

C#
public ChartLegendLabelsSettingsBuilder<T> Color(string value)
Parameters:valuestring

The value for Color

Returns:

ChartLegendLabelsSettingsBuilder<T>

Returns the current ChartLegendLabelsSettingsBuilder<T> instance.

The font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".

C#
public ChartLegendLabelsSettingsBuilder<T> Font(string value)
Parameters:valuestring

The value for Font

Returns:

ChartLegendLabelsSettingsBuilder<T>

Returns the current ChartLegendLabelsSettingsBuilder<T> instance.

The margin of the labels. A numeric value will set all margins.

C#
public ChartLegendLabelsSettingsBuilder<T> Margin(Action<ChartLegendLabelsMarginSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendLabelsMarginSettingsBuilder<T>>

The ChartLegendLabelsMarginSettingsBuilder<T> for the margin setting.

Returns:

ChartLegendLabelsSettingsBuilder<T>

Returns the current instance of ChartLegendLabelsSettingsBuilder<T> .

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

C#
public ChartLegendLabelsSettingsBuilder<T> Padding(Action<ChartLegendLabelsPaddingSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendLabelsPaddingSettingsBuilder<T>>

The ChartLegendLabelsPaddingSettingsBuilder<T> for the padding setting.

Returns:

ChartLegendLabelsSettingsBuilder<T>

Returns the current instance of ChartLegendLabelsSettingsBuilder<T> .

The template which renders the labels.The fields which can be used in the template are: text - the text the legend item.; series - the data series.; value - the point value. (only for donut and pie charts) or percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts..

C#
public ChartLegendLabelsSettingsBuilder<T> Template(string value)
Parameters:valuestring

The value for Template

Returns:

ChartLegendLabelsSettingsBuilder<T>

Returns the current ChartLegendLabelsSettingsBuilder<T> instance.

The template which renders the labels.The fields which can be used in the template are: text - the text the legend item.; series - the data series.; value - the point value. (only for donut and pie charts) or percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts..

C#
public ChartLegendLabelsSettingsBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

ChartLegendLabelsSettingsBuilder<T>

Returns the current ChartLegendLabelsSettingsBuilder<T> instance.

The template which renders the labels.The fields which can be used in the template are: text - the text the legend item.; series - the data series.; value - the point value. (only for donut and pie charts) or percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts..

C#
public ChartLegendLabelsSettingsBuilder<T> TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for Template

Returns:

ChartLegendLabelsSettingsBuilder<T>

Returns the current ChartLegendLabelsSettingsBuilder<T> instance.

The template which renders the labels.The fields which can be used in the template are: text - the text the legend item.; series - the data series.; value - the point value. (only for donut and pie charts) or percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts..

C#
public ChartLegendLabelsSettingsBuilder<T> TemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for Template

Returns:

ChartLegendLabelsSettingsBuilder<T>

Returns the current ChartLegendLabelsSettingsBuilder<T> instance.

The template which renders the labels.The fields which can be used in the template are: text - the text the legend item.; series - the data series.; value - the point value. (only for donut and pie charts) or percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts..

C#
public ChartLegendLabelsSettingsBuilder<T> TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for Template

Returns:

ChartLegendLabelsSettingsBuilder<T>

Returns the current ChartLegendLabelsSettingsBuilder<T> instance.