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.


                                    

                                    

color

Specifies a font color for a constant line label.

Type:

String

Default Value: '#767676'

This option supports the following colors.

  • Hexadecimal colors
  • RGB colors
  • RGBA colors (not supported in Internet Explorer 8)
  • Predefined/cross-browser color names
  • Predefined SVG colors (not supported in Internet Explorer 8)
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 argument 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 argument 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 argument axis constant line labels is changed to 16.


                                    

                                    

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 argument axis constant line labels is changed to 700.