Defines the fluent API for configuring ChartValueAxis
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartValueAxisBuilder<T> where T : class
Inheritance: objectChartValueAxisBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartValueAxisBuilder<T> class.
public ChartValueAxisBuilder(ChartValueAxis<T> container)
The ChartValueAxis<T> container
Properties
Gets the ChartValueAxis<T> container.
protected ChartValueAxis<T> Container { get; }
Methods
Value at which the category axis crosses this axis. (Only for object)Value indices at which the category axes cross the value axis. (Only for array)Date at which the category axis crosses this axis. (Only for date)
public ChartValueAxisBuilder<T> AxisCrossingValue(params object[] value)
The value for AxisCrossingValue
Returns:Returns the current ChartValueAxisBuilder<T> instance.
The background color of the axis.
public ChartValueAxisBuilder<T> Background(string value)
The value for Background
Returns:Returns the current ChartValueAxisBuilder<T> instance.
The color of the value axis. Accepts a valid CSS color string, including hex and rgb.
public ChartValueAxisBuilder<T> Color(string value)
The value for Color
Returns:Returns the current ChartValueAxisBuilder<T> instance.
The crosshair configuration options.
public ChartValueAxisBuilder<T> Crosshair(Action<ChartValueAxisCrosshairSettingsBuilder<T>> configurator)
The ChartValueAxisCrosshairSettingsBuilder<T> for the crosshair setting.
Returns:Returns the current instance of ChartValueAxisBuilder<T> .
Sets the axis type to date.
public ChartValueAxisBuilder<T> Date()
Returns the current instance of ChartValueAxisBuilder<T> .
The axis labels configuration.
public ChartValueAxisBuilder<T> Labels(Action<ChartValueAxisLabelsSettingsBuilder<T>> configurator)
The ChartValueAxisLabelsSettingsBuilder<T> for the labels setting.
Returns:Returns the current instance of ChartValueAxisBuilder<T> .
The configuration of the axis lines. Also affects the major and minor ticks, but not the grid lines.
public ChartValueAxisBuilder<T> Line(Action<ChartValueAxisLineSettingsBuilder<T>> configurator)
The ChartValueAxisLineSettingsBuilder<T> for the line setting.
Returns:Returns the current instance of ChartValueAxisBuilder<T> .
Sets the axis type to logarithmic.
public ChartValueAxisBuilder<T> Logarithmic()
Returns the current instance of ChartValueAxisBuilder<T> .
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 ChartValueAxisBuilder<T> MajorGridLines(Action<ChartValueAxisMajorGridLinesSettingsBuilder<T>> configurator)
The ChartValueAxisMajorGridLinesSettingsBuilder<T> for the majorgridlines setting.
Returns:Returns the current instance of ChartValueAxisBuilder<T> .
The configuration of the value axis major ticks.
public ChartValueAxisBuilder<T> MajorTicks(Action<ChartValueAxisMajorTicksSettingsBuilder<T>> configurator)
The ChartValueAxisMajorTicksSettingsBuilder<T> for the majorticks setting.
Returns:Returns the current instance of ChartValueAxisBuilder<T> .
The interval between major divisions. If the valueAxis.type is set to "log", the majorUnit value will be used for the base of the logarithm.
public ChartValueAxisBuilder<T> MajorUnit(double value)
The value for MajorUnit
Returns:Returns the current ChartValueAxisBuilder<T> instance.
The maximum value of the axis.
public ChartValueAxisBuilder<T> Max(double value)
The value for Max
Returns:Returns the current ChartValueAxisBuilder<T> instance.
The minimum value of the axis. Under certain conditions, the narrowRange setting can overwrite this setting. To give priority to the min setting of your choice, set valueAxis.narrowRange to false.
public ChartValueAxisBuilder<T> Min(double value)
The value for Min
Returns:Returns the current ChartValueAxisBuilder<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 ChartValueAxisBuilder<T> MinorGridLines(Action<ChartValueAxisMinorGridLinesSettingsBuilder<T>> configurator)
The ChartValueAxisMinorGridLinesSettingsBuilder<T> for the minorgridlines setting.
Returns:Returns the current instance of ChartValueAxisBuilder<T> .
The configuration of the value axis minor ticks.
public ChartValueAxisBuilder<T> MinorTicks(Action<ChartValueAxisMinorTicksSettingsBuilder<T>> configurator)
The ChartValueAxisMinorTicksSettingsBuilder<T> for the minorticks setting.
Returns:Returns the current instance of ChartValueAxisBuilder<T> .
The interval between minor divisions. It defaults to 1/5 of the valueAxis.majorUnit. If the valueAxis.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 ChartValueAxisBuilder<T> MinorUnit(double value)
The value for MinorUnit
Returns:Returns the current ChartValueAxisBuilder<T> instance.
The unique axis name. Used to associate a series with a value axis using the series.axis option.
public ChartValueAxisBuilder<T> Name(string value)
The value for Name
Returns:Returns the current ChartValueAxisBuilder<T> instance.
If set to true the Chart will narrow the value axis range in order to display data points in better detail. Setting it to false will force the automatic axis range to start from 0 or the explicitly specified valueAxis.min value.
public ChartValueAxisBuilder<T> NarrowRange(bool value)
The value for NarrowRange
Returns:Returns the current ChartValueAxisBuilder<T> instance.
The value axis notes configuration.
public ChartValueAxisBuilder<T> Notes(Action<ChartValueAxisNotesSettingsBuilder<T>> configurator)
The ChartValueAxisNotesSettingsBuilder<T> for the notes setting.
Returns:Returns the current instance of ChartValueAxisBuilder<T> .
Sets the axis type to numeric.
public ChartValueAxisBuilder<T> Numeric()
Returns the current instance of ChartValueAxisBuilder<T> .
Defines a numeric value axis.
public virtual ChartValueAxisBuilder<T> Numeric(string name)
The value of the name for the numeric value axis.
Returns:Returns the current instance of ChartValueAxisBuilder<T> .
The name of the pane that the value axis should be rendered in. The axis will be rendered in the first (default) pane if not set.
public ChartValueAxisBuilder<T> Pane(string value)
The value for Pane
Returns:Returns the current ChartValueAxisBuilder<T> instance.
The plot bands of the value axis.
public ChartValueAxisBuilder<T> PlotBands(Action<ChartValueAxisPlotBandFactory<T>> configurator)
The ChartValueAxisPlotBandFactory<T> for the plotbands setting.
Returns:Returns the current instance of ChartValueAxisBuilder<T> .
Sets the axis type to polar.
public ChartValueAxisBuilder<T> Polar()
Returns the current instance of ChartValueAxisBuilder<T> .
If set to true the value axis direction will be reversed. By default categories are listed from left to right and from bottom to top.
public ChartValueAxisBuilder<T> Reverse()
Returns the current ChartValueAxisBuilder<T> instance.
If set to true the value axis direction will be reversed. By default categories are listed from left to right and from bottom to top.
public ChartValueAxisBuilder<T> Reverse(bool value)
The value for Reverse
Returns:Returns the current ChartValueAxisBuilder<T> instance.
The title configuration of the value axis.
public ChartValueAxisBuilder<T> Title(Action<ChartValueAxisTitleSettingsBuilder<T>> configurator)
The ChartValueAxisTitleSettingsBuilder<T> for the title setting.
Returns:Returns the current instance of ChartValueAxisBuilder<T> .
Sets the axis title.
public ChartValueAxisBuilder<T> Title(string value)
Returns the current instance of ChartValueAxisBuilder<T> .
The axis type.The supported values are: "numeric" - numeric axis. or "log" - logarithmic axis..
public ChartValueAxisBuilder<T> Type(string value)
The value for Type
Returns:Returns the current ChartValueAxisBuilder<T> instance.
If set to true the chart will display the value axis. By default the value axis is visible.
public ChartValueAxisBuilder<T> Visible(bool value)
The value for Visible
Returns:Returns the current ChartValueAxisBuilder<T> instance.
An optional Z-index that can be used to change the default stacking position of the valueAxis.
public ChartValueAxisBuilder<T> ZIndex(double value)
The value for ZIndex
Returns:Returns the current ChartValueAxisBuilder<T> instance.