font

Specifies font options for the text displayed in the legend.

Type:

Object

Show Example:
jQuery

In this example, the legend's font is customized.


                                    

                                    

color

Specifies a font color for the text displayed in the chart's legend.

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)

family

Specifies a font family for the text displayed in the legend.

Type:

String

Default Value: undefined

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

opacity

Specifies a font opacity for the text displayed in the legend.

Type:

Number

Default Value: undefined

size

Specifies a font size for the text displayed in the legend.

Type:

Number

|

String

Default Value: undefined

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

weight

Specifies a font weight for legend items.

Type:

Number

Default Value: undefined