All Components
Components

XAxisItemComponent

The configuration component for an x axis.

Selector

kendo-chart-x-axis-item

Inputs

axisCrossingValue any[]

(Only for objects) The value at which the y axis crosses this axis.

(Only for arrays) The value indices at which the y axes cross the value axis.

(Only for dates) The date at which the y axis crosses this axis.

To denote the far end of the axis, set a value greater than or equal to the axis maximum value.

background string

The background color of the axis.

baseUnit string

The base time interval for the axis labels. The default baseUnit is automatically determined from the value range.

The available options are:

  • milliseconds
  • seconds
  • minutes
  • hours
  • days
  • weeks
  • months
  • years

color string

The color of the axis. Accepts a valid CSS color string, including hex and rgb.

crosshair any

The crosshair configuration options.

The crosshair is displayed when the xAxis.crosshair.visible option is set to true.

labels any

The axis labels configuration.

line AxisLine

The configuration of the axis lines. Also affects the major and minor ticks, but not the grid lines.

majorGridLines GridLines

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.

majorTicks AxisTicks

The configuration of the scatter chart x axis major ticks.

majorUnit number

The interval between major divisions. If this is a date axis, the value represents the number of xAxis.baseUnits between major divisions. If the xAxis.type is set to "log", the majorUnit value is used for the base of the logarithm.

max any

The maximum value of the axis.

min any

The minimum value of the axis.

minorGridLines GridLines

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.

minorTicks AxisTicks

The configuration of the x-axis minor ticks.

minorUnit number

The interval between minor divisions. It defaults to 1/5 of the xAxis.majorUnit. If the xAxis.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.

name string

The unique axis name. Used to associate a series with a x axis by using the series.xAxis option.

narrowRange boolean

If set to true, the Chart prevents the automatic axis range from snapping to 0. Setting it to false forces the automatic axis range to snap to 0.

notes any

The x-axis notes configuration.

pane string

The name of the pane that the axis has to be rendered in. If not set, the axis is rendered in the first (default) pane.

plotBands PlotBand[]

The plot bands of the x axis.

reverse boolean

If set to true, the value axis direction is reversed. By default, values increase from left to right and from bottom to top.

startAngle number

The angle (in degrees) where the 0 value is placed.

Angles increase counterclockwise and zero is to the right. Negative values are acceptable.

title any

The title configuration of the Scatter Chart x axis.

To display the title, set the xAxis.title.text option.

type string

The axis type.

The supported values are:

  • "numeric"—Numeric axis.
  • "date"—Specialized axis for displaying chronological data.
  • "log"—Logarithmic axis.

The Chart automatically switches to a date axis if the series x value is of type Date. To avoid this behavior, set the xAsix.type.

visible boolean

If set to true, the Chart displays the x axis. By default, the x axis is visible.

In this article