ChartCategoryAxisLabelsSettingsBuilder
Methods
Margin(System.Int32,System.Int32,System.Int32,System.Int32)
Sets the labels margin.
Parameters
top - System.Int32
right - System.Int32
bottom - System.Int32
left - System.Int32
Padding(System.Int32,System.Int32,System.Int32,System.Int32)
Sets the labels padding.
Parameters
top - System.Int32
right - System.Int32
bottom - System.Int32
left - System.Int32
Rotation(System.Double)
The rotation angle of the labels. By default the labels are not rotated.
Parameters
value - System.Double
The value for Rotation
Rotation(System.String)
The rotation angle of the labels.
Parameters
value - System.String
The value for Rotation
Background(System.String)
The background color of the labels. Accepts a valid CSS color string, including hex and rgb.
Parameters
value - System.String
The value for Background
Border(System.Action)
The border of the labels.
Parameters
configurator - System.Action<ChartCategoryAxisLabelsBorderSettingsBuilder>
The configurator for the border setting.
Color(System.String)
The text color of the labels. Accepts a valid CSS color string, including hex and rgb.
Parameters
value - System.String
The value for Color
Culture(System.String)
The culture to use when formatting date values. See the globalization overview for more information.
Parameters
value - System.String
The value for Culture
DateFormats(System.Action)
The format used to display 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.labels.format option will override the date formats.See also: kendo.format.
Parameters
configurator - System.Action<ChartCategoryAxisLabelsDateFormatsSettingsBuilder>
The configurator for the dateformats setting.
Font(System.String)
The font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".
Parameters
value - System.String
The value for Font
Format(System.String)
The format used to display the labels. Uses kendo.format. Contains one placeholder ("{0}") which represents the category value.
Parameters
value - System.String
The value for Format
Margin(System.Action)
The margin of the labels. A numeric value will set all margins.
Parameters
configurator - System.Action<ChartCategoryAxisLabelsMarginSettingsBuilder>
The configurator for the margin setting.
Mirror(System.Boolean)
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.
Parameters
value - System.Boolean
The value for Mirror
Mirror()
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.
Padding(System.Action)
The padding of the labels. A numeric value will set all paddings.
Parameters
configurator - System.Action<ChartCategoryAxisLabelsPaddingSettingsBuilder>
The configurator for the padding setting.
Rotation(System.Action)
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.
Parameters
configurator - System.Action<ChartCategoryAxisLabelsRotationSettingsBuilder>
The configurator for the rotation setting.
Skip(System.Double)
The number of labels to skip. By default no labels are skipped.
Parameters
value - System.Double
The value for Skip
Step(System.Double)
The label rendering step - render every n-th label. By default every label is rendered.
Parameters
value - System.Double
The value for Step
Template(System.String)
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.
Parameters
value - System.String
The value for Template
TemplateId(System.String)
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.
Parameters
templateId - System.String
The ID of the template element for Template
TemplateView(Microsoft.AspNetCore.Html.IHtmlContent)
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.
Parameters
templateView - Microsoft.AspNetCore.Html.IHtmlContent
The view that contains the template for Template
TemplateHandler(System.String)
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.
Parameters
templateHandler - System.String
The handler that returs the template for Template
Template(Kendo.Mvc.UI.TemplateBuilder)
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.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the template.
Visible(System.Boolean)
If set to true the chart will display the category axis labels. By default the category axis labels are visible.
Parameters
value - System.Boolean
The value for Visible
Visual(System.String)
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.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Visual(System.Func)
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.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Position(Kendo.Mvc.UI.ChartAxisLabelsPosition)
Specifies the position of the labels.
Parameters
value - ChartAxisLabelsPosition
The value for Position