label

Configures the constant line label.

Type: Object

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 widget.

font

Specifies font options for constant line labels.

Type: Object

horizontalAlignment

Aligns constant line labels in the horizontal direction.

Type: String
Default Value: 'right'
Accepted Values: 'right' | 'center' | 'left'

When using a widget as an ASP.NET MVC Control, specify this option using the HorizontalAlignment enum. This enum accepts the following values: Left, Center and Right.

Show Example:
jQuery

In this example, each argument axis constant line label is aligned differently using the horizontalAlignment option.


                                    

                                    

position

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

Type: String
Default Value: 'inside'
Accepted Values: 'inside' | 'outside'

By default, constant line labels are displayed inside the chart plot near the constant lines they belong to. To place the labels outside the chart plot, set the position option to "outside".

When using the widget as an ASP.NET MVC Control, specify this option using the RelativePosition enum. This enum accepts the following values: Inside and Outside.

Show Example:
jQuery

In this example, the "2013" label is placed outside the chart plot using the position option.


                                    

                                    

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.

Type: String
Default Value: 'top'
Accepted Values: 'top' | 'center' | 'bottom'

When using the widget as an ASP.NET MVC Control, specify this option using the VerticalAlignment enum. This enum accepts the following values: Top, Center and Bottom.

Show Example:
jQuery

In this example, each argument axis constant line label is aligned differently using the verticalAlignment option.


                                    

                                    

visible

Makes constant line labels visible.

Type: Boolean
Default Value: true