Configures the category axis for the Chart<T>.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TModel
The type of the data item to which the chart is bound to
Syntax:
public class ChartCategoryAxisBuilder<TModel> : ChartAxisBuilderBase<IChartCategoryAxis, int, ChartCategoryAxisBuilder<TModel>> where TModel : class
Inheritance: objectChartAxisBuilderBase<IChartCategoryAxis, int, ChartCategoryAxisBuilder<TModel>>ChartCategoryAxisBuilder<TModel>
Inherited Members
Constructors
Initializes a new instance of the ChartCategoryAxisBuilder<TModel> class.
public ChartCategoryAxisBuilder(Chart<TModel> chart, IChartCategoryAxis axis)
The chart.
axisIChartCategoryAxisThe category axis.
Properties
Methods
Sets value at which the first perpendicular axis crosses this axis.
public ChartCategoryAxisBuilder<TModel> AxisCrossingValue(double axisCrossingValue)
The value at which the first perpendicular axis crosses this axis.
Returns:ChartCategoryAxisBuilder<TModel>
Sets value at which perpendicular axes cross this axis.
public ChartCategoryAxisBuilder<TModel> AxisCrossingValue(IEnumerable<double> axisCrossingValues)
The values at which perpendicular axes cross this axis.
Returns:ChartCategoryAxisBuilder<TModel>
Sets value at which perpendicular axes cross this axis.
public ChartCategoryAxisBuilder<TModel> AxisCrossingValue(params double[] axisCrossingValues)
The values at which perpendicular axes cross this axis.
Returns:ChartCategoryAxisBuilder<TModel>
Defines categories.
public ChartCategoryAxisBuilder<TModel> Categories(IEnumerable categories)
The list of categories
Returns:ChartCategoryAxisBuilder<TModel>
Defines categories.
public ChartCategoryAxisBuilder<TModel> Categories(params string[] categories)
The list of categories
Returns:ChartCategoryAxisBuilder<TModel>
Defines bound categories.
public ChartCategoryAxisBuilder<TModel> Categories<TValue>(Expression<Func<TModel, TValue>> expression)
The expression used to extract the categories value from the chart model
Returns:ChartCategoryAxisBuilder<TModel>
Creates a Date category axis.
The highlight configuration options for the category axis.
public ChartCategoryAxisBuilder<TModel> Highlight(Action<ChartCategoryAxisHighlightSettingsBuilder<TModel>> configurator)
The ChartCategoryAxisHighlightSettingsBuilder<T> for the highlight setting.
Returns:ChartCategoryAxisBuilder<TModel>
Returns the current instance of ChartCategoryAxisBuilder<TModel> .
Positions categories and series points on major ticks. This removes the empty space before and after the series. This option will be ignored if either Bar, Column, OHLC or Candlestick series are plotted on the axis.
Positions categories and series points on major ticks. This removes the empty space before and after the series. This option will be ignored if either Bar, Column, OHLC or Candlestick series are plotted on the axis.
public ChartCategoryAxisBuilder<TModel> Justify(bool justified)
A boolean value that indicates if the empty space before and after the series should be removed. The default value is false.
Returns:ChartCategoryAxisBuilder<TModel>
Sets the maximum value.
public ChartCategoryAxisBuilder<TModel> Max(double value)
The maximum value of the axis.
Returns:ChartCategoryAxisBuilder<TModel>
The maximum number of ticks and labels to display.
public ChartCategoryAxisBuilder<TModel> MaxDivisions(double value)
The value for MaxDivisions
Returns:ChartCategoryAxisBuilder<TModel>
Sets the minimum value.
public ChartCategoryAxisBuilder<TModel> Min(double value)
The minimum value of the axis.
Returns:ChartCategoryAxisBuilder<TModel>
Defines the items.
public ChartCategoryAxisBuilder<TModel> Notes(Action<ChartAxisNotesBuilder> configurator)
The items of the notes.
Returns:ChartCategoryAxisBuilder<TModel>
Configures the selection
public ChartCategoryAxisBuilder<TModel> Select(Action<ChartAxisSelectionBuilder> configurator)
The configuration action.
Returns:ChartCategoryAxisBuilder<TModel>
Sets the selection range
public ChartCategoryAxisBuilder<TModel> Select(double from, double to)
The selection range start.
todoubleThe selection range end. Note: The category with the specified index is not included in the selected range unless the axis is justified. In order to select all categories specify a value larger than the last category index.
Returns:ChartCategoryAxisBuilder<TModel>
Overrides the category axis type.
public ChartCategoryAxisBuilder<TModel> Type(ChartCategoryAxisType type)
The axis type. The default is determined by the category items type.
Returns:ChartCategoryAxisBuilder<TModel>