New to Telerik UI for ASP.NET Core? Download free 30-day trial

ChartCategoryAxisTagHelper

Example

<category-axis-item>
    <auto-base-unit-steps />
    <chart-category-axis-item-title></chart-category-axis-item-title>
    <crosshair></crosshair>
    <labels></labels>
    <line />
    <major-grid-lines />
    <major-ticks />
    <minor-grid-lines />
    <minor-ticks />
    <notes></notes>
    <plot-bands></plot-bands>
    <range-labels></range-labels>
    <select></select>
</category-axis-item>

ChildTags

Tag Name Details
auto-base-unit-steps ChartCategoryAxisAutoBaseUnitStepsSettingsTagHelper
chart-category-axis-item-title ChartCategoryAxisTitleSettingsTagHelper
crosshair ChartCategoryAxisCrosshairSettingsTagHelper
labels ChartCategoryAxisLabelsSettingsTagHelper
line ChartCategoryAxisLineSettingsTagHelper
major-grid-lines ChartCategoryAxisMajorGridLinesSettingsTagHelper
major-ticks ChartCategoryAxisMajorTicksSettingsTagHelper
minor-grid-lines ChartCategoryAxisMinorGridLinesSettingsTagHelper
minor-ticks ChartCategoryAxisMinorTicksSettingsTagHelper
notes ChartCategoryAxisNotesSettingsTagHelper
plot-bands ChartCategoryAxisPlotBandsTagHelper
range-labels ChartCategoryAxisRangeLabelsSettingsTagHelper
select ChartCategoryAxisSelectSettingsTagHelper

Attributes

Attribute Type Description
name String The unique axis name. Used to associate a series with a category axis using the series.categoryAxis option.
axis-crossing-value Object[] 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).
background String The background color of the axis.
base-unit ChartAxisBaseUnit 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".
base-unit-step Int32 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".
categories Object[] The category names. The chart will create a category for every item of the array.
color String 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.
field String 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.
justify Boolean 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".
max Object 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.
max-date-groups Double The maximum number of groups (categories) to display whencategoryAxis.baseUnit is set to "fit" orcategoryAxis.baseUnitStep is set to "auto".
max-divisions Double 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.
min Object 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.
pane String 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.
reverse Boolean 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.
round-to-base-unit Boolean 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".
start-angle Double The angle (degrees) of the first category on the axis.Angles increase clockwise and zero is to the left. Negative values are acceptable.
type ChartCategoryAxisType Specifies the category axis type.
visible Boolean If set to true the chart will display the category axis. By default the category axis is visible.
week-start-day Double 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.
In this article
Not finding the help you need?