Defines the fluent API for configuring ChartAxisDefaultsLabelsSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartAxisDefaultsLabelsSettingsBuilder<T> where T : class
Inheritance: objectChartAxisDefaultsLabelsSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartAxisDefaultsLabelsSettingsBuilder<T> class.
public ChartAxisDefaultsLabelsSettingsBuilder(ChartAxisDefaultsLabelsSettings<T> container)
The ChartAxisDefaultsLabelsSettings<T> container
Properties
Gets the ChartAxisDefaultsLabelsSettings<T> container.
protected ChartAxisDefaultsLabelsSettings<T> Container { get; }
Methods
The font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".
public ChartAxisDefaultsLabelsSettingsBuilder<T> Font(string value)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Format(string value)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Margin(Action<ChartAxisDefaultsLabelsMarginSettingsBuilder<T>> configurator)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Mirror()
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Mirror(bool value)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Padding(Action<ChartAxisDefaultsLabelsPaddingSettingsBuilder<T>> configurator)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Rotation(Action<ChartAxisDefaultsLabelsRotationSettingsBuilder<T>> configurator)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Rotation(string rotation)
The rotation.
Returns:ChartAxisDefaultsLabelsSettingsBuilder<T>
Returns the current instance of ChartAxisDefaultsLabelsSettingsBuilder<T> .
The number of labels to skip. By default no labels are skipped.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Skip(double value)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Step(double value)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Template(string value)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> TemplateHandler(string templateHandler)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> TemplateId(string templateId)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> TemplateView(IHtmlContent templateView)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Visible(bool value)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Visual(Func<object, object> handler)
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.
public ChartAxisDefaultsLabelsSettingsBuilder<T> Visual(string handler)
The name of the JavaScript function that will be evaluated.
Returns:ChartAxisDefaultsLabelsSettingsBuilder<T>
Returns the current ChartAxisDefaultsLabelsSettingsBuilder<T> instance.