Defines the fluent API for configuring ChartValueAxisLabelsSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartValueAxisLabelsSettingsBuilder<T> where T : class
Inheritance: objectChartValueAxisLabelsSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartValueAxisLabelsSettingsBuilder<T> class.
public ChartValueAxisLabelsSettingsBuilder(ChartValueAxisLabelsSettings<T> container)
The ChartValueAxisLabelsSettings<T> container
Properties
Gets the ChartValueAxisLabelsSettings<T> container.
protected ChartValueAxisLabelsSettings<T> Container { get; }
Methods
The background color of the labels. Accepts a valid CSS color string, including hex and rgb.
public ChartValueAxisLabelsSettingsBuilder<T> Background(string value)
The value for Background
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
The border of the labels.
public ChartValueAxisLabelsSettingsBuilder<T> Border(Action<ChartValueAxisLabelsBorderSettingsBuilder<T>> configurator)
The ChartValueAxisLabelsBorderSettingsBuilder<T> for the border setting.
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartValueAxisLabelsSettingsBuilder<T> .
The text color of the labels. Accepts a valid CSS color string, including hex and rgb.
public ChartValueAxisLabelsSettingsBuilder<T> Color(string value)
The value for Color
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
The font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".
public ChartValueAxisLabelsSettingsBuilder<T> Font(string value)
The value for Font
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
The format used to display the labels. Uses kendo.format. Contains one placeholder ("{0}") which represents the category value.
public ChartValueAxisLabelsSettingsBuilder<T> Format(string value)
The value for Format
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
The margin of the labels. A numeric value will set all margins.
public ChartValueAxisLabelsSettingsBuilder<T> Margin(Action<ChartValueAxisLabelsMarginSettingsBuilder<T>> configurator)
The ChartValueAxisLabelsMarginSettingsBuilder<T> for the margin setting.
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartValueAxisLabelsSettingsBuilder<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 ChartValueAxisLabelsSettingsBuilder<T> Mirror(bool value)
The value for Mirror
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
The padding of the labels. A numeric value will set all margins.
public ChartValueAxisLabelsSettingsBuilder<T> Padding(Action<ChartValueAxisLabelsPaddingSettingsBuilder<T>> configurator)
The ChartValueAxisLabelsPaddingSettingsBuilder<T> for the padding setting.
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartValueAxisLabelsSettingsBuilder<T> .
Specifies the position of the labels.
public ChartValueAxisLabelsSettingsBuilder<T> Position(ChartAxisLabelsPosition value)
The value for Position
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
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.
public ChartValueAxisLabelsSettingsBuilder<T> Rotation(Action<ChartValueAxisLabelsRotationSettingsBuilder<T>> configurator)
The ChartValueAxisLabelsRotationSettingsBuilder<T> for the rotation setting.
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartValueAxisLabelsSettingsBuilder<T> .
The rotation angle of the labels. By default the labels are not rotated.
public ChartValueAxisLabelsSettingsBuilder<T> Rotation(double value)
The value for Rotation
Returns: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.
public ChartValueAxisLabelsSettingsBuilder<T> Rotation(string rotation)
The rotation.
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current instance of ChartValueAxisLabelsSettingsBuilder<T> .
The number of labels to skip. By default no labels are skipped.
public ChartValueAxisLabelsSettingsBuilder<T> Skip(double value)
The value for Skip
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
Label rendering step. Every n-th label is rendered where n is the step
public ChartValueAxisLabelsSettingsBuilder<T> Step(double value)
The value for Step
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
The template which renders the labels.The fields which can be used in the template are: value - the value value.
public ChartValueAxisLabelsSettingsBuilder<T> Template(string value)
The value for Template
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
The template which renders the labels.The fields which can be used in the template are: value - the value value.
public ChartValueAxisLabelsSettingsBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
The template which renders the labels.The fields which can be used in the template are: value - the value value.
public ChartValueAxisLabelsSettingsBuilder<T> TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
The template which renders the labels.The fields which can be used in the template are: value - the value value.
public ChartValueAxisLabelsSettingsBuilder<T> TemplateId(string templateId)
The ID of the template element for Template
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
The template which renders the labels.The fields which can be used in the template are: value - the value value.
public ChartValueAxisLabelsSettingsBuilder<T> TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.
If set to true the chart will display the value axis labels. By default the category axis labels are visible.
public ChartValueAxisLabelsSettingsBuilder<T> Visible(bool value)
The value for Visible
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<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 ChartValueAxisLabelsSettingsBuilder<T> Visual(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<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 ChartValueAxisLabelsSettingsBuilder<T> Visual(string handler)
The name of the JavaScript function that will be evaluated.
Returns:ChartValueAxisLabelsSettingsBuilder<T>
Returns the current ChartValueAxisLabelsSettingsBuilder<T> instance.