font

Specifies font options for a constant line label.

Type: Object

Show Example:
jQuery

In this example, each argument axis constant line label is displayed in a different color and size.


                                    

                                    

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, each argument axis constant line label is displayed in a different shade of green.


                                    

                                    

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, each argument axis constant line label has a different font family.


                                    

                                    

opacity

Specifies the font opacity for a constant line label.

Type: Number
Default Value: undefined

Show Example:
jQuery

In this example, each argument axis constant line label has a different font opacity.


                                    

                                    

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, each argument axis constant line label has a different font size.


                                    

                                    

weight

Specifies the font weight for a constant line label.

Type: Number
Default Value: 400

Show Example:
jQuery

In this example, each argument axis constant line label has a different font weight.