AxisDefaultsComponent
Represents the default options for all Chart axes (see example).
Accepts the options which are supported by categoryAxis
,
valueAxis
,
xAxis
,
and yAxis
.
<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
Name | Type | Default | Description |
---|---|---|---|
background |
|
Specifies the background color of the axis. | |
color |
|
Specifies the color of the axis. | |
crosshair |
|
Specifies the crosshair configuration of the axis. | |
labels |
|
Specifies the labels configuration of the axis. | |
line |
|
Specifies the line configuration of the axis. | |
majorGridLines |
|
Specifies the major grid lines configuration of the axis. | |
majorTicks |
|
Specifies the major ticks configuration of the axis. | |
minorGridLines |
|
Specifies the minor grid lines configuration of the axis. | |
minorTicks |
|
Specifies the minor ticks configuration of the axis. | |
narrowRange |
|
|
Determines whether the Chart prevents the axis range from snapping to zero.
Set it to |
pane |
|
Specifies the pane of the axis. | |
plotBands |
|
Specifies the plot bands configuration of the axis. | |
reverse |
|
|
Determines whether the axis direction is reversed. Categories are listed from left to right and from bottom to top by default. |
startAngle |
|
|
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 |
|
Specifies the title configuration of the axis. | |
visible |
|
|
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
| ||||||
|