Angular Chart - valueAxis.label
Axis labels display the values of major axis ticks.
See Also
- commonAxisSettings.label - configures the labels of all axes in the UI component.
alignment
When using a UI component as an ASP.NET MVC 5 Control or a DevExtreme-Based ASP.NET Core Control, specify this property using the HorizontalAlignment
enum. This enum accepts the following values: Left
, Center
and Right
.
displayMode
This property accepts one of the following values.
- rotate
Rotates axis labels through the angle specified by the rotationAngle property. - stagger
Arranges axis labels in two rows in a staggering manner. An empty space between the rows is specified by the staggeringSpacing property. - standard
Does not change the default disposition of axis labels.
format
See the format section for details on accepted values.
See Also
- valueAxis.label.customizeText
- Data Formatting
overlappingBehavior
When axis labels overlap each other, you can rearrange them by setting the overlappingBehavior property. Depending on whether an axis is horizontal or vertical, this property accepts different values.
The following values can be specified for both horizontal and vertical axes.
- hide
Hides certain axis labels leaving more space for the others. - none
Leaves axis labels overlapped.
The following values can be specified for horizontal axes only.
- rotate
Rotates axis labels through the angle specified by the rotationAngle property. - stagger
Arranges axis labels in two rows in a staggering manner. An empty space between the rows is specified by the staggeringSpacing property.
Use the OverlappingBehavior
enum to specify this property when the UI component is used as an ASP.NET MVC 5 Control or a DevExtreme-Based ASP.NET Core Control. This enum accepts the following values: Stagger
, Rotate
, Hide
, and None
.
See Also
position
You can specify the following positions for labels on the valueAxis:
Value | Result |
---|---|
'inside', 'right' | |
'outside', 'left' |
The following positions are available for labels on the argumentAxis:
Value | Result |
---|---|
'inside', 'top' | |
'outside', 'bottom' |
The "inside" and "outside" values allow you to keep the same label's position when the chart is rotated.
rotationAngle
Specifies the rotation angle of axis labels. Applies only if displayMode or overlappingBehavior is "rotate".
staggeringSpacing
Adds a pixel-measured empty space between two staggered rows of axis labels. Applies only if displayMode or overlappingBehavior is "stagger".
textOverflow
Specifies what to do with axis labels that overflow the allocated space after applying wordWrap: hide, truncate them and display an ellipsis, or do nothing.
Use the VizTextOverflow
enum to specify this property when the UI component is used as an ASP.NET MVC 5 Control or a DevExtreme-Based ASP.NET Core Control. This enum accepts the following values: Ellipsis
, Hide
, and None
.
wordWrap
The following modes are available:
"normal"
Text breaks only at allowed breakpoints (for example, a space between two words)."breakWord"
Words can be broken if there are no available breakpoints in the line."none"
Word wrap is disabled.
If the text overflows the container even after word wrap, the UI component applies the textOverflow property.
Use the VizWordWrap
enum to specify this property when the UI component is used as an ASP.NET MVC 5 Control or a DevExtreme-Based ASP.NET Core Control. This enum accepts the following values: Normal
, BreakWord
, and None
.
If you have technical questions, please create a support ticket in the DevExpress Support Center.