ChartValueAxisBuilder
Methods
Date()
Sets the axis type to date.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
Example
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series
.Area(s => s.Sales)
)
.ValueAxis(valueAxis => valueAxis
.Date()
)
)
Logarithmic()
Sets the axis type to logarithmic.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
Example
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series
.Area(s => s.Sales)
)
.ValueAxis(valueAxis => valueAxis
.Logarithmic()
)
)
Numeric()
Sets the axis type to numeric.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
Example
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series
.Area(s => s.Sales)
)
.ValueAxis(valueAxis => valueAxis
.Numeric()
)
)
Numeric(System.String)
Defines a numeric value axis.
Parameters
name - System.String
The value of the name for the numeric value axis.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
Example
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series
.Area(s => s.Sales)
)
.ValueAxis(valueAxis => valueAxis
.Numeric("even")
)
)
Polar()
Sets the axis type to polar.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
Example
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series
.Area(s => s.Sales)
)
.ValueAxis(valueAxis => valueAxis
.Polar()
)
)
Title(System.String)
Sets the axis title.
Parameters
value - System.String
RETURNS
Returns the current instance of ChartValueAxisBuilder .
Example
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series
.Area(s => s.Sales)
)
.ValueAxis(valueAxis => valueAxis
.Title("Sales")
)
)
AxisCrossingValue(System.Object[])
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)
Parameters
value - System.Object[]
The value for AxisCrossingValue
RETURNS
Returns the current ChartValueAxisBuilder instance.
Background(System.String)
The background color of the axis.
Parameters
value - System.String
The value for Background
RETURNS
Returns the current ChartValueAxisBuilder instance.
Color(System.String)
The color of the value axis. Accepts a valid CSS color string, including hex and rgb.
Parameters
value - System.String
The value for Color
RETURNS
Returns the current ChartValueAxisBuilder instance.
Crosshair(System.Action)
The crosshair configuration options.
Parameters
configurator - System.Action<ChartValueAxisCrosshairSettingsBuilder>
The configurator for the crosshair setting.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
Labels(System.Action)
The axis labels configuration.
Parameters
configurator - System.Action<ChartValueAxisLabelsSettingsBuilder>
The configurator for the labels setting.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
Line(System.Action)
The configuration of the axis lines. Also affects the major and minor ticks, but not the grid lines.
Parameters
configurator - System.Action<ChartValueAxisLineSettingsBuilder>
The configurator for the line setting.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
MajorGridLines(System.Action)
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.
Parameters
configurator - System.Action<ChartValueAxisMajorGridLinesSettingsBuilder>
The configurator for the majorgridlines setting.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
MajorUnit(System.Double)
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.
Parameters
value - System.Double
The value for MajorUnit
RETURNS
Returns the current ChartValueAxisBuilder instance.
Max(System.Double)
The maximum value of the axis.
Parameters
value - System.Double
The value for Max
RETURNS
Returns the current ChartValueAxisBuilder instance.
Min(System.Double)
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.
Parameters
value - System.Double
The value for Min
RETURNS
Returns the current ChartValueAxisBuilder instance.
MinorGridLines(System.Action)
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.
Parameters
configurator - System.Action<ChartValueAxisMinorGridLinesSettingsBuilder>
The configurator for the minorgridlines setting.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
MajorTicks(System.Action)
The configuration of the value axis major ticks.
Parameters
configurator - System.Action<ChartValueAxisMajorTicksSettingsBuilder>
The configurator for the majorticks setting.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
MinorTicks(System.Action)
The configuration of the value axis minor ticks.
Parameters
configurator - System.Action<ChartValueAxisMinorTicksSettingsBuilder>
The configurator for the minorticks setting.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
MinorUnit(System.Double)
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.
Parameters
value - System.Double
The value for MinorUnit
RETURNS
Returns the current ChartValueAxisBuilder instance.
Name(System.String)
The unique axis name. Used to associate a series with a value axis using the series.axis option.
Parameters
value - System.String
The value for Name
RETURNS
Returns the current ChartValueAxisBuilder instance.
NarrowRange(System.Boolean)
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.
Parameters
value - System.Boolean
The value for NarrowRange
RETURNS
Returns the current ChartValueAxisBuilder instance.
Pane(System.String)
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.
Parameters
value - System.String
The value for Pane
RETURNS
Returns the current ChartValueAxisBuilder instance.
PlotBands(System.Action)
The plot bands of the value axis.
Parameters
configurator - System.Action<ChartValueAxisPlotBandFactory>
The configurator for the plotbands setting.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
Reverse(System.Boolean)
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.
Parameters
value - System.Boolean
The value for Reverse
RETURNS
Returns the current ChartValueAxisBuilder instance.
Reverse()
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.
RETURNS
Returns the current ChartValueAxisBuilder instance.
Title(System.Action)
The title configuration of the value axis.
Parameters
configurator - System.Action<ChartValueAxisTitleSettingsBuilder>
The configurator for the title setting.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
Type(System.String)
The axis type.The supported values are: "numeric" - numeric axis. or "log" - logarithmic axis..
Parameters
value - System.String
The value for Type
RETURNS
Returns the current ChartValueAxisBuilder instance.
Visible(System.Boolean)
If set to true the chart will display the value axis. By default the value axis is visible.
Parameters
value - System.Boolean
The value for Visible
RETURNS
Returns the current ChartValueAxisBuilder instance.
Notes(System.Action)
The value axis notes configuration.
Parameters
configurator - System.Action<ChartValueAxisNotesSettingsBuilder>
The configurator for the notes setting.
RETURNS
Returns the current instance of ChartValueAxisBuilder .
ZIndex(System.Double)
An optional Z-index that can be used to change the default stacking position of the valueAxis.
Parameters
value - System.Double
The value for ZIndex
RETURNS
Returns the current ChartValueAxisBuilder instance.