font

Specifies the legend items' font options.

Type:

Object

color

Specifies the legend items' font color.

Type:

String

Default Value: '#767676'

This option supports the following colors:

family

Specifies the legend items' font family.

Type:

String

Default Value: undefined

Refer to the Font family article for details on acceptable values.

opacity

Specifies the transparency of the legend items' text.

Type:

Number

Default Value: undefined

This option accepts a value from 0 to 1, where 0 makes the text completely transparent, and 1 makes it opaque.

size

Specifies the legend items' font size.

Type:

Number

|

String

Default Value: undefined

Refer to the Font size article for details on acceptable values.

weight

Specifies the legend items' font weight. Accepts values from 100 to 900 in increments of 100. Higher values increase boldness.

Type:

Number

Default Value: undefined