Help us shape the 2021 DevExtreme Roadmap. Take our 5 minute survey.
Dismiss

label

An object defining constant line label properties.

Type:

Object

A constant line label shows information on the constant line. You can configure label appearance using the label object. Within this object, you can set font properties, a position and text using corresponding fields. In addition, you can specify the horizontal and vertical alignments for the label.

You can set the label properties for all the argument axis constant lines simultaneously. For this purpose, use the argumentAxis.constantLineStyle.label object. Note that the properties that are set within the argumentAxis.constantLine.label object override the corresponding properties that are set within the argumentAxis.constantLineStyle.label object.

font

Specifies font properties for a constant line label.

Type:

Object

text

Specifies the text to be displayed in a constant line label.

Type:

String

Default Value: undefined

By default, a constant line label shows the value of the constant line. However, the label can display any information you demand. For this purpose, assign the required string to the text property.

visible

Indicates whether or not to display labels for the axis constant lines.

Type:

Boolean

Default Value: true