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