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

Defines the fluent API for configuring ChartAxisDefaultsLabelsSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectChartAxisDefaultsLabelsSettingsBuilder<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 ChartAxisDefaultsLabelsSettingsBuilder<T> class.

C#
public ChartAxisDefaultsLabelsSettingsBuilder(ChartAxisDefaultsLabelsSettings<T> container)
Parameters:containerChartAxisDefaultsLabelsSettings<T>

The ChartAxisDefaultsLabelsSettings<T> container

Properties

Gets the ChartAxisDefaultsLabelsSettings<T> container.

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

Methods

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

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

The value for Font

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<T> instance.

The format used to display the labels. Uses kendo.format. Contains one placeholder ("{0}") which represents the category value.

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

The value for Format

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<T> instance.

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

C#
public ChartAxisDefaultsLabelsSettingsBuilder<T> Margin(Action<ChartAxisDefaultsLabelsMarginSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsLabelsMarginSettingsBuilder<T>>

The ChartAxisDefaultsLabelsMarginSettingsBuilder<T> for the margin setting.

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsLabelsSettingsBuilder<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 ChartAxisDefaultsLabelsSettingsBuilder<T> Mirror()
Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<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 ChartAxisDefaultsLabelsSettingsBuilder<T> Mirror(bool value)
Parameters:valuebool

The value for Mirror

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<T> instance.

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

C#
public ChartAxisDefaultsLabelsSettingsBuilder<T> Padding(Action<ChartAxisDefaultsLabelsPaddingSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsLabelsPaddingSettingsBuilder<T>>

The ChartAxisDefaultsLabelsPaddingSettingsBuilder<T> for the padding setting.

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsLabelsSettingsBuilder<T> .

The rotation angle of the 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 ChartAxisDefaultsLabelsSettingsBuilder<T> Rotation(Action<ChartAxisDefaultsLabelsRotationSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsLabelsRotationSettingsBuilder<T>>

The ChartAxisDefaultsLabelsRotationSettingsBuilder<T> for the rotation setting.

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsLabelsSettingsBuilder<T> .

The rotation angle of the 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 ChartAxisDefaultsLabelsSettingsBuilder<T> Rotation(string rotation)
Parameters:rotationstring

The rotation.

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsLabelsSettingsBuilder<T> .

The number of labels to skip. By default no labels are skipped.

C#
public ChartAxisDefaultsLabelsSettingsBuilder<T> Skip(double value)
Parameters:valuedouble

The value for Skip

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<T> instance.

The label rendering step - render every n-th label. By default every label is rendered.

C#
public ChartAxisDefaultsLabelsSettingsBuilder<T> Step(double value)
Parameters:valuedouble

The value for Step

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<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 or culture - the default culture (if set) on the label.

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

The value for Template

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<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 or culture - the default culture (if set) on the label.

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

A Template component that configures the template.

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<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 or culture - the default culture (if set) on the label.

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

The handler that returs the template for Template

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<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 or culture - the default culture (if set) on the label.

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

The ID of the template element for Template

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<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 or culture - the default culture (if set) on the label.

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

The view that contains the template for Template

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<T> instance.

If set to true the chart will display the axis labels. By default the axis labels are visible.

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

The value for Visible

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<T> instance.

A function that can be used to create a custom visual for the 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 ChartAxisDefaultsLabelsSettingsBuilder<T> Visual(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<T> instance.

A function that can be used to create a custom visual for the 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 ChartAxisDefaultsLabelsSettingsBuilder<T> Visual(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ChartAxisDefaultsLabelsSettingsBuilder<T>

Returns the current ChartAxisDefaultsLabelsSettingsBuilder<T> instance.