font

Specifies font options for a strip label.

Type:

Object

Show Example:
jQuery

In this example, the font options for the strip labels' text are altered.


                                    

                                    

color

Specifies the font color for a strip 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 text of the strip labels is colored in indigo.


                                    

                                    

family

Specifies the font family for a strip 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 and color of the strip labels' text are altered.


                                    

                                    

opacity

Specifies the font opacity for a strip label.

Type:

Number

Default Value: undefined

Show Example:
jQuery

In this example, the strip labels' text is colored in red. In addition, the opacity option is set to 0.5.


                                    

                                    

size

Specifies the font size for a strip 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 strip labels' text is colored in red and enlarged up to the size of 14 pixels.


                                    

                                    

weight

Specifies the font weight for the text displayed in strips.

Type:

Number

Default Value: 400

Show Example:
jQuery

In this example, the strip labels' text is colored in red and its weight is altered to 700.