New to Kendo UI for AngularStart a free 30-day trial

Represents the default options for all Chart axes (see example). Accepts the options which are supported by categoryAxis, valueAxis, xAxis, and yAxis.

Definition

Package:@progress/kendo-angular-charts

Selector:kendo-chart-axis-defaults

Syntax:

html
<kendo-chart>
 <kendo-chart-axis-defaults>
  <kendo-chart-axis-defaults-crosshair [color]="'red'"></kendo-chart-axis-defaults-crosshair>
 <kendo-chart-axis-defaults-labels [color]="'blue'"></kendo-chart-axis-defaults-labels>
 <kendo-chart-axis-defaults-title text="My Axis Title"></kendo-chart-axis-defaults-title>
</kendo-chart-axis-defaults>
</kendo-chart>

Inputs

Specifies the background color of the axis.

color

string

Specifies the color of the axis.

Specifies the crosshair configuration of the axis.

Specifies the labels configuration of the axis.

Specifies the line configuration of the axis.

Specifies the major grid lines configuration of the axis.

Specifies the major ticks configuration of the axis.

Specifies the minor grid lines configuration of the axis.

Specifies the minor ticks configuration of the axis.

Determines whether the Chart prevents the axis range from snapping to zero. Set it to false to force the axis range to snap to zero.

Default:

false

pane

string

Specifies the pane of the axis.

Specifies the plot bands configuration of the axis.

reverse

boolean

Determines whether the axis direction is reversed. Categories are listed from left to right and from bottom to top by default.

Default:

false

Specifies the angle (degrees) of the first category on the axis. Use positive values to increase the angle clockwise with zero to the left. Negative values are acceptable.

Default:

90

Specifies the title configuration of the axis.

visible

boolean

Determines whether the Chart displays the axis.

Default:

true

Methods

Updates the component fields with the specified values and refreshes the Chart.

Use this method when the configuration values cannot be set through the template.

Parameters:changesany

An object containing the updated input fields.