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

Kendo UI ChartValueAxisLabelsSettings class

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectChartValueAxisLabelsSettings<T>

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

Constructors

C#
public ChartValueAxisLabelsSettings()

Properties

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

C#
public string Background { get; set; }

The border of the labels.

C#
public ChartValueAxisLabelsBorderSettings<T> Border { get; }

Chart member.

C#
public Chart<T> Chart { get; set; }

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

C#
public string Color { get; set; }

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

C#
public string Font { get; set; }

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

C#
public string Format { get; set; }

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

C#
public ChartValueAxisLabelsMarginSettings<T> Margin { get; }

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 bool? Mirror { get; set; }

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

C#
public ChartValueAxisLabelsPaddingSettings<T> Padding { get; }

Specifies the position of the labels.

C#
public ChartAxisLabelsPosition? Position { get; set; }

The rotation angle (in degrees) of the labels. By default the labels are not rotated. Angles increase clockwise and zero is to the left. Negative values are acceptable. 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 ChartValueAxisLabelsRotationSettings<T> Rotation { get; }

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

C#
public double? Skip { get; set; }

Label rendering step. Every n-th label is rendered where n is the step

C#
public double? Step { get; set; }

The template which renders the labels.The fields which can be used in the template are: value - the value value.

C#
public string Template { get; set; }

The handler that returns the template used for Template

C#
public string TemplateHandler { get; set; }

The id of the script element used for Template

C#
public string TemplateId { get; set; }

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

C#
public bool? Visible { get; set; }

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; 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 ClientHandlerDescriptor Visual { get; set; }

Methods

Serializes the settings to a Dictionary.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Serialize current instance to Dictionary

C#
protected virtual Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>