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

Defines the fluent API for configuring ChartCategoryAxisRangeLabelsSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectChartCategoryAxisRangeLabelsSettingsBuilder<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

ChartCategoryAxisRangeLabelsSettingsBuilder method.

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder(ChartCategoryAxisRangeLabelsSettings<T> container)
Parameters:containerChartCategoryAxisRangeLabelsSettings<T>

Properties

Gets or sets the Container.

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

Methods

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

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

The value for Background

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

The border of the labels.

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> Border(Action<ChartCategoryAxisRangeLabelsBorderSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartCategoryAxisRangeLabelsBorderSettingsBuilder<T>>

The ChartCategoryAxisRangeLabelsBorderSettingsBuilder<T> for the border setting.

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current instance of ChartCategoryAxisRangeLabelsSettingsBuilder<T> .

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

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

The value for Color

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

The culture to use when formatting date values. See the globalization overview for more information.

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> Culture(string value)
Parameters:valuestring

The value for Culture

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

The format used to display date range labels for date category axis. The {0} placeholder represents the category value.The chart will choose the appropriate format for the current categoryAxis.baseUnit. Setting the categoryAxis.rangeLabels.format option will override the date formats.See also: kendo.format.

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> DateFormats(Action<ChartCategoryAxisRangeLabelsDateFormatsSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartCategoryAxisRangeLabelsDateFormatsSettingsBuilder<T>>

The ChartCategoryAxisRangeLabelsDateFormatsSettingsBuilder<T> for the dateformats setting.

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current instance of ChartCategoryAxisRangeLabelsSettingsBuilder<T> .

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

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

The value for Font

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

The format used to display the labels. Uses kendo.format.

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> Format(string value)
Parameters:valuestring

The value for Format

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

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

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> Margin(Action<ChartCategoryAxisRangeLabelsMarginSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartCategoryAxisRangeLabelsMarginSettingsBuilder<T>>

The ChartCategoryAxisRangeLabelsMarginSettingsBuilder<T> for the margin setting.

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current instance of ChartCategoryAxisRangeLabelsSettingsBuilder<T> .

If set to true the chart will mirror the axis labels and ticks. If the labels are normally on the left side of the axis, mirroring the axis will render them to the right.

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> Mirror()
Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

If set to true the chart will mirror the axis labels and ticks. If the labels are normally on the left side of the axis, mirroring the axis will render them to the right.

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> Mirror(bool value)
Parameters:valuebool

The value for Mirror

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

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

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> Padding(Action<ChartCategoryAxisRangeLabelsPaddingSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartCategoryAxisRangeLabelsPaddingSettingsBuilder<T>>

The ChartCategoryAxisRangeLabelsPaddingSettingsBuilder<T> for the padding setting.

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current instance of ChartCategoryAxisRangeLabelsSettingsBuilder<T> .

The rotation angle of the date range labels. By default the labels are not rotated. Can be set to "auto" if the axis is horizontal in which case the labels will be rotated only if the slot size is not sufficient for the entire labels.

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> Rotation(Action<ChartCategoryAxisRangeLabelsRotationSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartCategoryAxisRangeLabelsRotationSettingsBuilder<T>>

The ChartCategoryAxisRangeLabelsRotationSettingsBuilder<T> for the rotation setting.

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current instance of ChartCategoryAxisRangeLabelsSettingsBuilder<T> .

The rotation angle of the date range labels. By default the labels are not rotated. Can be set to "auto" if the axis is horizontal in which case the labels will be rotated only if the slot size is not sufficient for the entire labels.

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> Rotation(string rotation)
Parameters:rotationstring

The rotation.

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current instance of ChartCategoryAxisRangeLabelsSettingsBuilder<T> .

The template which renders the labels.The fields which can be used in the template are: value - the category value; dataItem - the data item, in case a field has been specified. If the category does not have a corresponding item in the data then an empty object will be passed.; format - the default format of the label; culture - the default culture (if set) on the label; text - The default label text.; index - The index of the label. or count - The total number of rendered labels..

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

The value for Template

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

The template which renders the labels.The fields which can be used in the template are: value - the category value; dataItem - the data item, in case a field has been specified. If the category does not have a corresponding item in the data then an empty object will be passed.; format - the default format of the label; culture - the default culture (if set) on the label; text - The default label text.; index - The index of the label. or count - The total number of rendered labels..

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

A Template component that configures the template.

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

The template which renders the labels.The fields which can be used in the template are: value - the category value; dataItem - the data item, in case a field has been specified. If the category does not have a corresponding item in the data then an empty object will be passed.; format - the default format of the label; culture - the default culture (if set) on the label; text - The default label text.; index - The index of the label. or count - The total number of rendered labels..

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

The handler that returs the template for Template

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

The template which renders the labels.The fields which can be used in the template are: value - the category value; dataItem - the data item, in case a field has been specified. If the category does not have a corresponding item in the data then an empty object will be passed.; format - the default format of the label; culture - the default culture (if set) on the label; text - The default label text.; index - The index of the label. or count - The total number of rendered labels..

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

The ID of the template element for Template

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

The template which renders the labels.The fields which can be used in the template are: value - the category value; dataItem - the data item, in case a field has been specified. If the category does not have a corresponding item in the data then an empty object will be passed.; format - the default format of the label; culture - the default culture (if set) on the label; text - The default label text.; index - The index of the label. or count - The total number of rendered labels..

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

The view that contains the template for Template

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

If set to true, the Chart displays the category axis date range labels. By default, the category axis date range labels are not visible.

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> Visible()
Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

If set to true, the Chart displays the category axis date range labels. By default, the category axis date range labels are not visible.

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

The value for Visible

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

A function that can be used to create a custom visual for the date range labels. The available argument fields are: createVisual - a function that can be used to get the default visual.; culture - the default culture (if set) on the label; dataItem - the data item, in case a field has been specified; format - the default format of the label; options - the label options.; rect - the kendo.geometry.Rect that defines where the visual should be rendered.; sender - the chart instance (may be undefined).; text - the label text. or value - the category value.

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> Visual(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.

A function that can be used to create a custom visual for the date range labels. The available argument fields are: createVisual - a function that can be used to get the default visual.; culture - the default culture (if set) on the label; dataItem - the data item, in case a field has been specified; format - the default format of the label; options - the label options.; rect - the kendo.geometry.Rect that defines where the visual should be rendered.; sender - the chart instance (may be undefined).; text - the label text. or value - the category value.

C#
public ChartCategoryAxisRangeLabelsSettingsBuilder<T> Visual(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ChartCategoryAxisRangeLabelsSettingsBuilder<T>

Returns the current ChartCategoryAxisRangeLabelsSettingsBuilder<T> instance.