label

An object defining constant line label options.

Type: Object

This object configures all the constant line labels of the value axis. A constant line label shows information on the constant line. Within the label object you can configure position, text and font options using the corresponding fields. In addition, you can specify the horizontal and vertical alignment for the label.

To configure styles for the constant line labels of the argument and value axis together, use the commonAxisSettings | constantLineStyle | label object.

In addition, you can define the appearance of each constant line label individually. For more information, refer to the valueAxis | constantLines | label object description.

NOTE
The options specified within the valueAxis | constantLines | label object override the corresponding options specified within the valueAxis | constantLineStyle | label object. In turn, the options specified within the valueAxis | constantLineStyle | label object override the options specified within the commonAxisSettings | constantLineStyle | label object.
Show Example:
jQuery

In the following example, the value axis constant line labels are positioned outside the chart. In addition, these labels are drawn in the rosybrown color.


                                    

                                    

font

Specifies font options for a constant line label.

Type: Object

Show Example:
jQuery

In this example, a number of font options for the argument axis constant line labels is changed.


                                    

                                    

horizontalAlignment

Specifies the horizontal alignment of a constant line label.

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

Show Example:
jQuery

Use the drop-down menu below to change the value of the horizontalAlignment option.


                                    

                                    

position

Specifies the position of the constant line label relative to the chart plot.

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

By default, a constant line label is displayed inside the chart plot near the constant line it belongs to. You can place the label outside the plot by setting the position option to 'outside'.

Show Example:
jQuery

Use the drop-down menu below to change the position of the argument axis constant line labels.


                                    

                                    

verticalAlignment

Specifies the vertical alignment of a constant line label.

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

Show Example:
jQuery

In this example, the value axis constant line labels are aligned to the bottom of the constant lines.


                                    

                                    

visible

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

Type: Boolean
Default Value: true

Show Example:
jQuery

Use the check box at the bottom to change the visibility of the constant line labels.