ChartYAxisBuilder<T>
Defines the fluent API for configuring ChartYAxis
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartYAxisBuilder<T> where T : class
Inheritance: objectChartYAxisBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartYAxisBuilder<T> class.
public ChartYAxisBuilder(ChartYAxis<T> container)
The ChartYAxis<T> container
Properties
Gets the ChartYAxis<T> container.
protected ChartYAxis<T> Container { get; }
Methods
Value at which the Y axis crosses this axis. (Only for object)Value indices at which the Y axes cross the value axis. (Only for array)Date at which the Y axis crosses this axis. (Only for date)
public ChartYAxisBuilder<T> AxisCrossingValue(params object[] value)
The value for AxisCrossingValue
Returns:Returns the current ChartYAxisBuilder<T> instance.
The background color of the axis.
public ChartYAxisBuilder<T> Background(string value)
The value for Background
Returns:Returns the current ChartYAxisBuilder<T> instance.
The base time interval for the axis labels. The default baseUnit is determined automatically from the value range. Available options: milliseconds; seconds; minutes; hours; days; weeks; months or years.
public ChartYAxisBuilder<T> BaseUnit(string value)
The value for BaseUnit
Returns:Returns the current ChartYAxisBuilder<T> instance.
The category names. Applicable for charts with X and Y category axes (heatmap).
public ChartYAxisBuilder<T> Categories(params object[] value)
The value for Categories
Returns:Returns the current ChartYAxisBuilder<T> instance.
The color of the axis. Accepts a valid CSS color string, including hex and rgb.
public ChartYAxisBuilder<T> Color(string value)
The value for Color
Returns:Returns the current ChartYAxisBuilder<T> instance.
The crosshair configuration options.
public ChartYAxisBuilder<T> Crosshair(Action<ChartYAxisCrosshairSettingsBuilder<T>> configurator)
The ChartYAxisCrosshairSettingsBuilder<T> for the crosshair setting.
Returns:Returns the current instance of ChartYAxisBuilder<T> .
Sets the axis type to date for displaying chronological data.
The axis labels configuration.
public ChartYAxisBuilder<T> Labels(Action<ChartYAxisLabelsSettingsBuilder<T>> configurator)
The ChartYAxisLabelsSettingsBuilder<T> for the labels setting.
Returns:Returns the current instance of ChartYAxisBuilder<T> .
The configuration of the axis lines. Also affects the major and minor ticks, but not the grid lines.
public ChartYAxisBuilder<T> Line(Action<ChartYAxisLineSettingsBuilder<T>> configurator)
The ChartYAxisLineSettingsBuilder<T> for the line setting.
Returns:Returns the current instance of ChartYAxisBuilder<T> .
Sets the axis type to logarithmic.
public ChartYAxisBuilder<T> Logarithmic()
Returns the current ChartYAxisBuilder<T> instance.
The configuration of the major grid lines. These are the lines that are an extension of the major ticks through the body of the chart.
public ChartYAxisBuilder<T> MajorGridLines(Action<ChartYAxisMajorGridLinesSettingsBuilder<T>> configurator)
The ChartYAxisMajorGridLinesSettingsBuilder<T> for the majorgridlines setting.
Returns:Returns the current instance of ChartYAxisBuilder<T> .
The configuration of the scatter chart y axis major ticks.
public ChartYAxisBuilder<T> MajorTicks(Action<ChartYAxisMajorTicksSettingsBuilder<T>> configurator)
The ChartYAxisMajorTicksSettingsBuilder<T> for the majorticks setting.
Returns:Returns the current instance of ChartYAxisBuilder<T> .
The interval between major divisions. If this is a date axis the value represents the number of xAxis.baseUnits between major divisions. If the yAxis.type is set to "log", the majorUnit value will be used for the base of the logarithm.
public ChartYAxisBuilder<T> MajorUnit(double value)
The value for MajorUnit
Returns:Returns the current ChartYAxisBuilder<T> instance.
The maximum value of the axis.
public ChartYAxisBuilder<T> Max(object value)
The value for Max
Returns:Returns the current ChartYAxisBuilder<T> instance.
The minimum value of the axis.
public ChartYAxisBuilder<T> Min(object value)
The value for Min
Returns:Returns the current ChartYAxisBuilder<T> instance.
The configuration of the minor grid lines. These are the lines that are an extension of the minor ticks through the body of the chart.
public ChartYAxisBuilder<T> MinorGridLines(Action<ChartYAxisMinorGridLinesSettingsBuilder<T>> configurator)
The ChartYAxisMinorGridLinesSettingsBuilder<T> for the minorgridlines setting.
Returns:Returns the current instance of ChartYAxisBuilder<T> .
The configuration of the y axis minor ticks.
public ChartYAxisBuilder<T> MinorTicks(Action<ChartYAxisMinorTicksSettingsBuilder<T>> configurator)
The ChartYAxisMinorTicksSettingsBuilder<T> for the minorticks setting.
Returns:Returns the current instance of ChartYAxisBuilder<T> .
The interval between minor divisions. It defaults to 1/5 of the yAxis.majorUnit. If the yAxis.type is set to "log", the minorUnit value represents the number of divisions between two major units and defaults to the major unit minus one.
public ChartYAxisBuilder<T> MinorUnit(double value)
The value for MinorUnit
Returns:Returns the current ChartYAxisBuilder<T> instance.
The unique axis name. Used to associate a series with a y axis using the series.yAxis option.
public ChartYAxisBuilder<T> Name(string value)
The value for Name
Returns:Returns the current ChartYAxisBuilder<T> instance.
If set to true the chart will prevent the automatic axis range from snapping to 0. Setting it to false will force the automatic axis range to snap to 0.
public ChartYAxisBuilder<T> NarrowRange()
Returns the current ChartYAxisBuilder<T> instance.
If set to true the chart will prevent the automatic axis range from snapping to 0. Setting it to false will force the automatic axis range to snap to 0.
public ChartYAxisBuilder<T> NarrowRange(bool value)
The value for NarrowRange
Returns:Returns the current ChartYAxisBuilder<T> instance.
The y axis notes configuration.
public ChartYAxisBuilder<T> Notes(Action<ChartYAxisNotesSettingsBuilder<T>> configurator)
The ChartYAxisNotesSettingsBuilder<T> for the notes setting.
Returns:Returns the current instance of ChartYAxisBuilder<T> .
Sets the axis type to numeric.
public ChartYAxisBuilder<T> Numeric()
Returns the current ChartYAxisBuilder<T> instance.
Sets the axis type to numeric.
public ChartYAxisBuilder<T> Numeric(string name)
The value that configures the axis name.
Returns:Returns the current ChartYAxisBuilder<T> instance.
The name of the pane that the axis should be rendered in. The axis will be rendered in the first (default) pane if not set.
public ChartYAxisBuilder<T> Pane(string value)
The value for Pane
Returns:Returns the current ChartYAxisBuilder<T> instance.
The plot bands of the y axis.
public ChartYAxisBuilder<T> PlotBands(Action<ChartYAxisPlotBandFactory<T>> configurator)
The ChartYAxisPlotBandFactory<T> for the plotbands setting.
Returns:Returns the current instance of ChartYAxisBuilder<T> .
Sets the axis type to polar.
If set to true the value axis direction will be reversed. By default values increase from left to right and from bottom to top.
public ChartYAxisBuilder<T> Reverse()
Returns the current ChartYAxisBuilder<T> instance.
If set to true the value axis direction will be reversed. By default values increase from left to right and from bottom to top.
public ChartYAxisBuilder<T> Reverse(bool value)
The value for Reverse
Returns:Returns the current ChartYAxisBuilder<T> instance.
The title configuration of the scatter chart y axis.
public ChartYAxisBuilder<T> Title(Action<ChartYAxisTitleSettingsBuilder<T>> configurator)
The ChartYAxisTitleSettingsBuilder<T> for the title setting.
Returns:Returns the current instance of ChartYAxisBuilder<T> .
Sets the title of the axis.
public ChartYAxisBuilder<T> Title(string value)
The value that configures the title.
Returns:Returns the current ChartYAxisBuilder<T> instance.
The axis type.The supported values are: "numeric" - numeric axis.; "date" - specialized axis for displaying chronological data. or "log" - logarithmic axis..
public ChartYAxisBuilder<T> Type(string value)
The value for Type
Returns:Returns the current ChartYAxisBuilder<T> instance.
If set to true the chart will display the y axis. By default the y axis is visible.
public ChartYAxisBuilder<T> Visible(bool value)
The value for Visible
Returns:Returns the current ChartYAxisBuilder<T> instance.