CategoryAxis
configurationThe category axis configuration options.
categoryAxis
ArrayThe discrete categoryAxis.baseUnitStep values when either categoryAxis.baseUnit is set to "fit" or categoryAxis.baseUnitStep is set to "auto".
categoryAxis.axisCrossingValue
Object | Date | ArrayCategory index at which the first value axis crosses this axis. (Only for object)
Category indicies at which the value axes cross the category axis. (Only for array)
Note: Specify an index greater than or equal to the number of categories to denote the far end of the axis.
categoryAxis.background
StringThe background color of the axis.
categoryAxis.baseUnit
StringThe base time interval for the date axis. The default base unit is determined automatically from the minimum difference between subsequent categories.
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".
Default: 1
categoryAxis.color
StringColor to apply to all axis elements. Any valid CSS color string will work here, including hex and rgb. Individual color settings for line and labels take priority.
categoryAxis.crosshair
ObjectThe crosshair configuration options.
categoryAxis.field
StringThe data field containing the category name.
categoryAxis.justified
BooleanPositions categories and series points on major ticks. This removes the empty space before and after the series.
This option is ignored if either column, ohlc or candlestick series are plotted on the axis.
Default: false
categoryAxis.labels
ObjectConfigures the axis labels.
categoryAxis.line
ObjectConfigures the axis line. This will also effect major and minor ticks, but not gridlines.
Configures the major grid lines. These are the lines that are an extension of the major ticks through the body of the chart.
categoryAxis.majorTicks
ObjectThe major ticks of the axis.
categoryAxis.max
ObjectThe last date displayed on the axis. By default, the minimum date is the same as the last category. This is often used in combination with the min and roundToBaseUnit configuration options to set up a fixed date range.
Specifies the maximum number of groups (categories) to produce when either baseUnit is set to "fit" or baseUnitStep is set to "auto".
This option is ignored in all other cases.
The default value is approximately equal to [widget width, px] / 30
The maximum number of ticks and labels to display.
categoryAxis.min
ObjectThe first date displayed on the axis. By default, the minimum date is the same as the first category. This is often used in combination with the max and roundToBaseUnit configuration options to set up a fixed date range.
Configures the minor grid lines. These are the lines that are an extension of the minor ticks through the body of the chart.
categoryAxis.minorTicks
ObjectThe minor ticks of the axis.
categoryAxis.name
StringThe unique axis name.
Default: "primary"
categoryAxis.notes
ObjectThe category axis notes configuration.
categoryAxis.pane
StringThe name of the pane that the axis should be rendered in. The axis will be rendered in the first (default) pane if not set.
The plot bands of the category axis.
categoryAxis.reverse
BooleanReverses the axis direction - categories are listed from right to left and from top to bottom.
Default: false
categoryAxis.roundToBaseUnit
BooleanBy default, the first and last dates will be rounded off to the nearest base unit. Specifying false for this option will disable this behavior.
This option is most useful in combination with explicit min and max dates.
Default: true
categoryAxis.select
ObjectThe selected axis range. If configured, axis selection will be enabled.
categoryAxis.title
ObjectThe title of the category axis.
categoryAxis.type
StringThe axis type.
"category"
Discrete category axis.
"date"
Specialized axis for displaying chronological data.
Default: "category"
categoryAxis.visible
BooleanThe visibility of the axis.
Default: true
Specifies the week start day when baseUnit is set to "weeks". Use the kendo.days constants to specify the day by name.
- kendo.days.Sunday (0)
- kendo.days.Monday (1)
- kendo.days.Tuesday (2)
- kendo.days.Wednesday (3)
- kendo.days.Thursday (4)
- kendo.days.Friday (5)
- kendo.days.Saturday (6)
Default: kendo.days.Sunday