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

AxisDefaultsComponent

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

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>

Selector

kendo-chart-axis-defaults

Inputs

NameTypeDefaultDescription

background

string

Specifies the background color of the axis.

color

string

Specifies the color of the axis.

crosshair

AxisDefaultsCrosshair

Specifies the crosshair configuration of the axis.

labels

AxisDefaultsLabels

Specifies the labels configuration of the axis.

line

AxisLine

Specifies the line configuration of the axis.

majorGridLines

GridLines

Specifies the major grid lines configuration of the axis.

majorTicks

AxisTicks

Specifies the major ticks configuration of the axis.

minorGridLines

GridLines

Specifies the minor grid lines configuration of the axis.

minorTicks

AxisTicks

Specifies the minor ticks configuration of the axis.

narrowRange

boolean

false

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.

pane

string

Specifies the pane of the axis.

plotBands

PlotBand[]

Specifies the plot bands configuration of the axis.

reverse

boolean

false

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

startAngle

number

90

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.

title

AxisDefaultsTitle

Specifies the title configuration of the axis.

visible

boolean

true

Determines whether the Chart displays the axis.

Methods

notifyChanges

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.

ts
item.notifyChanges({ visible: true });
Parameters

changes

any

An object containing the updated input fields.

In this article
SelectorInputsMethods
Not finding the help you need?
Contact Support