AxisDefaultsComponent
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:
<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
background
string
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 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.
narrowRange
boolean
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.
false
pane
string
Specifies the pane 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.
false
startAngle
number
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.
90
Specifies the title configuration of the axis.
visible
boolean
Determines whether the Chart displays the axis.
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.
An object containing the updated input fields.