font

Specifies font options for the text displayed in the legend.

Type:

Object

Show Example:
jQuery

In this example, the legend item text's font options are changed.


                                    

                                    

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.

Show Example:
jQuery

In this example, the legend item text's color option is set to midnightblue.


                                    

                                    

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.

Show Example:
jQuery

In this example, the legend item text's font family is changed.


                                    

                                    

opacity

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

Type:

Number

Default Value: undefined

Show Example:
jQuery

In this example, the legend item text's opacity option is set to 1.


                                    

                                    

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.

Show Example:
jQuery

In this example, the legend item text is enlarged up to the size of 14 pixels.


                                    

                                    

weight

Specifies a font weight for legend items.

Type:

Number

Default Value: undefined

Show Example:
jQuery

In this example, the legend item text's weight option is changed to 700.