Defines the fluent API for configuring ChartXAxisLabelsSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartXAxisLabelsSettingsBuilder<T> where T : class
Inheritance: objectChartXAxisLabelsSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartXAxisLabelsSettingsBuilder<T> class.
public ChartXAxisLabelsSettingsBuilder(ChartXAxisLabelsSettings<T> container)
The ChartXAxisLabelsSettings<T> container
Properties
Gets the ChartXAxisLabelsSettings<T> container.
protected ChartXAxisLabelsSettings<T> Container { get; }
Methods
The background color of the labels. Accepts a valid CSS color string, including hex and rgb.
public ChartXAxisLabelsSettingsBuilder<T> Background(string value)
The value for Background
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The border of the labels.
public ChartXAxisLabelsSettingsBuilder<T> Border(Action<ChartXAxisLabelsBorderSettingsBuilder<T>> configurator)
The ChartXAxisLabelsBorderSettingsBuilder<T> for the border setting.
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartXAxisLabelsSettingsBuilder<T> .
The text color of the labels. Accepts a valid CSS color string, including hex and rgb.
public ChartXAxisLabelsSettingsBuilder<T> Color(string value)
The value for Color
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The culture to use when formatting date values. See the globalization overview for more information.
public ChartXAxisLabelsSettingsBuilder<T> Culture(string value)
The value for Culture
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The format used to display the labels when the x values are dates. Uses kendo.format. Contains one placeholder ("{0}") which represents the category value.
public ChartXAxisLabelsSettingsBuilder<T> DateFormats(Action<ChartXAxisLabelsDateFormatsSettingsBuilder<T>> configurator)
The ChartXAxisLabelsDateFormatsSettingsBuilder<T> for the dateformats setting.
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartXAxisLabelsSettingsBuilder<T> .
The font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".
public ChartXAxisLabelsSettingsBuilder<T> Font(string value)
The value for Font
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The format used to display the labels. Uses kendo.format. Contains one placeholder ("{0}") which represents the category value.
public ChartXAxisLabelsSettingsBuilder<T> Format(string value)
The value for Format
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The margin of the labels. A numeric value will set all margins.
public ChartXAxisLabelsSettingsBuilder<T> Margin(Action<ChartXAxisLabelsMarginSettingsBuilder<T>> configurator)
The ChartXAxisLabelsMarginSettingsBuilder<T> for the margin setting.
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartXAxisLabelsSettingsBuilder<T> .
Sets the margin of the axis labels.
public ChartXAxisLabelsSettingsBuilder<T> Margin(int top, int right, int bottom, int left)
The top margin of the labels.
rightintThe right margin of the labels.
bottomintThe bottom margin of the labels.
leftintThe left margin of the labels.
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartXAxisLabelsSettingsBuilder<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 ChartXAxisLabelsSettingsBuilder<T> Mirror(bool value)
The value for Mirror
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The padding of the labels. A numeric value will set all paddings.
public ChartXAxisLabelsSettingsBuilder<T> Padding(Action<ChartXAxisLabelsPaddingSettingsBuilder<T>> configurator)
The ChartXAxisLabelsPaddingSettingsBuilder<T> for the padding setting.
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartXAxisLabelsSettingsBuilder<T> .
Sets the padding of the axis labels.
public ChartXAxisLabelsSettingsBuilder<T> Padding(int top, int right, int bottom, int left)
The top padding of the labels.
rightintThe right padding of the labels.
bottomintThe bottom padding of the labels.
leftintThe left padding of the labels.
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartXAxisLabelsSettingsBuilder<T> .
Specifies the position of the labels.
public ChartXAxisLabelsSettingsBuilder<T> Position(ChartAxisLabelsPosition value)
The value for Position
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The rotation angle of the labels. By default the labels are not rotated. Can be set to "auto" in which case the labels will be rotated only if the slot size is not sufficient for the entire labels.
public ChartXAxisLabelsSettingsBuilder<T> Rotation(Action<ChartXAxisLabelsRotationSettingsBuilder<T>> configurator)
The ChartXAxisLabelsRotationSettingsBuilder<T> for the rotation setting.
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartXAxisLabelsSettingsBuilder<T> .
Defines the rotation angle of the labels. By default, the labels are not rotated.
public ChartXAxisLabelsSettingsBuilder<T> Rotation(double value)
The value of the rotation angle.
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartXAxisLabelsSettingsBuilder<T> .
The rotation angle of the labels. By default the labels are not rotated. Can be set to "auto" in which case the labels will be rotated only if the slot size is not sufficient for the entire labels.
public ChartXAxisLabelsSettingsBuilder<T> Rotation(string rotation)
The rotation.
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartXAxisLabelsSettingsBuilder<T> .
The number of labels to skip.
public ChartXAxisLabelsSettingsBuilder<T> Skip(double value)
The value for Skip
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The label rendering step - render every n-th label. By default every label is rendered.
public ChartXAxisLabelsSettingsBuilder<T> Step(double value)
The value for Step
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The template which renders the labels.The fields which can be used in the template are: value - the category value.
public ChartXAxisLabelsSettingsBuilder<T> Template(string value)
The value for Template
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The template which renders the labels.The fields which can be used in the template are: value - the category value.
public ChartXAxisLabelsSettingsBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The template which renders the labels.The fields which can be used in the template are: value - the category value.
public ChartXAxisLabelsSettingsBuilder<T> TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The template which renders the labels.The fields which can be used in the template are: value - the category value.
public ChartXAxisLabelsSettingsBuilder<T> TemplateId(string templateId)
The ID of the template element for Template
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
The template which renders the labels.The fields which can be used in the template are: value - the category value.
public ChartXAxisLabelsSettingsBuilder<T> TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.
If set to true the chart will display the x axis labels. By default the x axis labels are visible.
public ChartXAxisLabelsSettingsBuilder<T> Visible(bool value)
The value for Visible
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<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; 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 ChartXAxisLabelsSettingsBuilder<T> Visual(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<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; 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 ChartXAxisLabelsSettingsBuilder<T> Visual(string handler)
The name of the JavaScript function that will be evaluated.
Returns:ChartXAxisLabelsSettingsBuilder<T>
Returns the current ChartXAxisLabelsSettingsBuilder<T> instance.