React Chart - argumentAxis.constantLines.label

Configures the constant line label.

The constant line label displays the value of the constant line.

DevExtreme HTML5 Charts ConstantLine ConstantLineLabel

See Also
  • argumentAxis.constantLineStyle.label - specifies a unified style for the labels of those constant lines that belong to the argument axis.
  • commonAxisSettings.constantLineStyle.label - specifies a unified style for the labels of all constant lines in the UI component.

font

Specifies font properties for constant line labels.

Type:

Object

horizontalAlignment

Aligns constant line labels in the horizontal direction.

Default Value: 'right'
NOTE
When the label's position is "outside", horizontalAlignment can only be "left" or "right".

position

Specifies the position of constant line labels on the chart plot.

Default Value: 'inside'

The component's default behavior is to display constant line labels inside the chart plot. To place the labels outside the chart plot, set position to "outside".

NOTE

When position is "outside", note the following label alignment restrictions:

text

Specifies the text of a constant line label. By default, equals to the value of the constant line.

Type:

String

Default Value: undefined

verticalAlignment

Aligns constant line labels in the vertical direction.

Default Value: 'top'
NOTE
When the label's position is "outside", verticalAlignment is always "center".

visible

Makes constant line labels visible.

Type:

Boolean

Default Value: true