label

An object defining constant line label options.

Type: Object

A constant line label shows information on the constant line. Use the label object to configure all the constant line labels simultaneously. Within this object you can set font options, a position and text using corresponding fields.

To specify styles for the constant line labels of the argument and value axis separately, use the argumentAxis | constantLineStyle | label or valueAxis | constantLineStyle | label configuration object correspondingly. Note that the options that are set within these objects override the corresponding options that are set within the commonAxisSettings | constantLineStyle | label object.

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

Show Example:
jQuery

In the following example, the 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 constant line labels is changed.


                                    

                                    

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 constant line labels.


                                    

                                    

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.