Each series point can be accompanied by a text label that represents data related to the point. These are called series point labels. Use the label object's properties to set label options for the series.
Formats the point argument before it is displayed in the point label. To format the point value, use the format option.
This option supports the following colors:
- Hexadecimal colors
- RGB colors
- RGBA colors
- Predefined/cross-browser color names
- Predefined SVG colors
You can remove the label's background by setting this option to "none". In this case, the label's text is the same color as the point.
A series point label can be placed separately near the represented point. To make the relationship between a label and its respective point clear, use a connector. Set the connector's visibility and appearance options using the connector object.
When implementing a callback function for this property, use the point value to be displayed in a label. In addition, you can use the argument of the currently displayed value. These values can be accessed using the following properties of the this object.
Specifies the value of the currently represented point.
Specifies the value of the currently represented point with applied formatting if the format property is specified.
Specifies the argument value of the currently represented point.
Specifies the argument value of the currently represented point with applied formatting if the argumentFormat property is specified.
Specifies the proportional value of the currently represented point in a floating point format.
Specifies the value of the currently represented point as a percentage with a precision of the format.percentPrecision option.
Specifies the tag of the currently represented point.
Specifies what to do with label texts that overflow the allocated space after applying wordWrap: hide, truncate them and display an ellipsis, or do nothing.
The following modes are available:
Text breaks only at allowed breakpoints (for example, a space between two words).
Words can be broken if there are no available breakpoints in the line.
Word wrap is disabled.
If the text overflows the container even after word wrap, the widget applies the textOverflow option.
VizWordWrap enum to specify this option when the widget is used as an ASP.NET MVC 5 Control or a DevExtreme-Based ASP.NET Core Control. This enum accepts the following values: