Kendo UI ChartCategoryAxisRangeLabelsSettings class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartCategoryAxisRangeLabelsSettings<T> where T : class
Inheritance: objectChartCategoryAxisRangeLabelsSettings<T>
Inherited Members
Constructors
public ChartCategoryAxisRangeLabelsSettings()
Properties
The background color of the labels. Accepts a valid CSS color string, including hex and rgb.
public string Background { get; set; }
The border of the labels.
public ChartCategoryAxisRangeLabelsBorderSettings<T> Border { get; }
The text color of the labels. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
The culture to use when formatting date values. See the globalization overview for more information.
public string Culture { get; set; }
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.
public ChartCategoryAxisRangeLabelsDateFormatsSettings<T> DateFormats { get; }
The font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".
public string Font { get; set; }
The format used to display the labels. Uses kendo.format.
public string Format { get; set; }
The margin of the labels. A numeric value will set all margins.
public ChartCategoryAxisRangeLabelsMarginSettings<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.
public bool? Mirror { get; set; }
The padding of the labels. A numeric value will set all paddings.
public ChartCategoryAxisRangeLabelsPaddingSettings<T> Padding { get; }
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.
public ChartCategoryAxisRangeLabelsRotationSettings<T> Rotation { get; }
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..
public string Template { get; set; }
The handler that returns the template used for Template
public string TemplateHandler { get; set; }
The id of the script element used for Template
public string TemplateId { get; set; }
If set to true, the Chart displays the category axis date range labels. By default, the category axis date range labels are not visible.
public bool? Visible { get; set; }
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.
public ClientHandlerDescriptor Visual { get; set; }
Methods
Serialize current instance to Dictionary
Serialize current instance to Dictionary
protected virtual Dictionary<string, object> SerializeSettings()