font

Specifies font options for a constant line label.

Type:

Object

Show Example:
jQuery

In this example, several font options for the value axis constant line labels are changed.


                                    

                                    

color

Specifies a font color for a constant line label.

Type:

String

Default Value: '#767676'

This option supports the following colors.

Show Example:
jQuery

In this example, the font color of the argument axis constant line labels is changed to 'olive'.


                                    

                                    

family

Specifies a font family for a constant line label.

Type:

String

Default Value: ''Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana'

For details on acceptable values, refer to the Font family article.

Show Example:
jQuery

In this example, the font family of the value axis constant line labels is changed.


                                    

                                    

opacity

Specifies the font opacity for a constant line label.

Type:

Number

Default Value: undefined

Show Example:
jQuery

In this example, the font opacity of the value axis constant line labels is changed to 0.85.


                                    

                                    

size

Specifies the font size for a constant line label.

Type:

Number

|

String

Default Value: 12

For details on acceptable values, refer to the Font size article.

Show Example:
jQuery

In this example, the font size of the value axis constant line labels is changed to 14.


                                    

                                    

weight

Specifies the font weight for a constant line label.

Type:

Number

Default Value: 400

Show Example:
jQuery

In this example, the font weight of the value axis constant line labels is changed to 700.