ChartCategoryAxis<T>
Kendo UI ChartCategoryAxis class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartCategoryAxis<T> where T : class
Inheritance: objectChartCategoryAxis<T>
Inherited Members
Constructors
public ChartCategoryAxis()
Properties
The discrete categoryAxis.baseUnitStep values when either categoryAxis.baseUnit is set to "fit" orcategoryAxis.baseUnitStep is set to "auto".The axis will try to divide the active period into successively larger intervals. It will start from x-second intervals, where x is picked from the autoBaseUnitSteps.seconds array. Then it will move to minutes, seconds and so on. This will continue until the number of intervals is less thanmaxDateGroups.
public ChartCategoryAxisAutoBaseUnitStepsSettings<T> AutoBaseUnitSteps { get; }
Category index at which the first value axis crosses this axis (when set as an object).Category indices at which the value axes cross the category axis (when set as an array).
public object[] AxisCrossingValue { get; set; }
The background color of the axis.
public string Background { get; set; }
Specifies the base time interval for the axis.
public ChartAxisBaseUnit? BaseUnit { get; set; }
The step (interval) between categories in base units. Setting it to "auto" will set the step to such value that the total number of categories does not exceed categoryAxis.maxDateGroups.This option is ignored if categoryAxis.baseUnit is set to "fit".
public int? BaseUnitStep { get; set; }
The category names. The chart will create a category for every item of the array.
public IEnumerable Categories { get; set; }
The color to apply to all axis elements. Accepts a valid CSS color string, including hex and rgb. Can be overridden by categoryAxis.labels.color andcategoryAxis.line.color.
public string Color { get; set; }
The crosshair configuration options.
public ChartCategoryAxisCrosshairSettings<T> Crosshair { get; }
The data item field which contains the category name. Requires the dataSource option to be set. The field name should be a valid Javascript identifier and should contain only alphanumeric characters (or "$" or "_"), and may not start with a digit.
public string Field { get; set; }
The highlight configuration options for the category axis.
public ChartCategoryAxisHighlightSettings<T> Highlight { get; }
If set to true the chart will position categories and series points on major ticks. This removes the empty space before and after the series.The default value is false except for "area", "verticalArea", "rangeArea" and "verticalRangeArea".
public bool? Justify { get; set; }
The axis labels configuration.
public ChartCategoryAxisLabelsSettings<T> Labels { get; }
The configuration of the axis lines. Also affects the major and minor ticks, but not the grid lines.
public ChartCategoryAxisLineSettings<T> Line { get; }
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 ChartCategoryAxisMajorGridLinesSettings<T> MajorGridLines { get; }
The configuration of the category axis major ticks.
public ChartCategoryAxisMajorTicksSettings<T> MajorTicks { get; }
The last date displayed on the category date axis. By default, the minimum date is the same as the last category. This is often used in combination with the categoryAxis.min and categoryAxis.roundToBaseUnit options to set up a fixed date range.
public object Max { get; set; }
The maximum number of groups (categories) to display whencategoryAxis.baseUnit is set to "fit" orcategoryAxis.baseUnitStep is set to "auto".
public double? MaxDateGroups { get; set; }
The maximum number of ticks, labels and grid lines to display. Applicable for date category axis. You can combine this property with a bigger value of the maxDateGroups property to increase the number of rendered data points in the Chart without drawing too many labels, ticks, and grid lines.
public double? MaxDivisions { get; set; }
The first date displayed on the category date axis. By default, the minimum date is the same as the first category. This is often used in combination with the categoryAxis.min and categoryAxis.roundToBaseUnit options to set up a fixed date range.
public object Min { get; set; }
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 ChartCategoryAxisMinorGridLinesSettings<T> MinorGridLines { get; }
The configuration of the category axis minor ticks.
public ChartCategoryAxisMinorTicksSettings<T> MinorTicks { get; }
The unique axis name. Used to associate a series with a category axis using the series.categoryAxis option.
public string Name { get; set; }
The category axis notes configuration.
public ChartCategoryAxisNotesSettings<T> Notes { get; }
The name of the pane that the category axis should be rendered in. The axis will be rendered in the first (default) pane if not set.
public string Pane { get; set; }
The plot bands of the category axis.
public List<ChartCategoryAxisPlotBand<T>> PlotBands { get; set; }
The configuration of the date axis date range labels.
public ChartCategoryAxisRangeLabelsSettings<T> RangeLabels { get; }
If set to true the category axis direction will be reversed. By default categories are listed from left to right and from bottom to top.
public bool? Reverse { get; set; }
If set to true the chart will round the first and last date to the nearest base unit.The roundToBaseUnit option will be ignored if series.type is set to "bar", "column", "boxPlot", "ohlc", "candlestick" or "waterfall".
public bool? RoundToBaseUnit { get; set; }
The selected axis range. If set, axis selection will be enabled.The range is index based, starting from 0. Categories with indexes in the range [select.from, select.to) will be selected. That is, the last category in the range will not be included in the selection.If the categories are dates, the range must also be specified with date values.
public ChartCategoryAxisSelectSettings<T> Select { get; }
The angle (degrees) of the first category on the axis.Angles increase clockwise and zero is to the left. Negative values are acceptable.
public double? StartAngle { get; set; }
The title configuration of the category axis.
public ChartCategoryAxisTitleSettings<T> Title { get; }
Specifies the category axis type.
public ChartCategoryAxisType? Type { get; set; }
If set to true the chart will display the category axis. By default the category axis is visible.
public bool? Visible { get; set; }
The week start day when categoryAxis.baseUnit is set to "weeks".The supported values are: kendo.days.Sunday - equal to 0; kendo.days.Monday - equal to 1; kendo.days.Tuesday - equal to 2; kendo.days.Wednesday - equal to 3; kendo.days.Thursday - equal to 4; kendo.days.Friday - equal to 5 or kendo.days.Saturday - equal to 6.
public double? WeekStartDay { get; set; }
Methods
Serializes the settings to a Dictionary.
Serialize current instance to Dictionary
protected virtual Dictionary<string, object> SerializeSettings()