Api font in EJ2 JavaScript Chart control

8 May 20231 minute to read

Configures the fonts in charts.

Properties

color string

Color for the text.

Defaults to ’’

fontFamily string

FontFamily for the text.

fontStyle string

FontStyle for the text.

Defaults to ‘Normal’

fontWeight string

FontWeight for the text.

Defaults to ‘Normal’

opacity number

Opacity for the text.

Defaults to 1

size string

Font size for the text.

Defaults to ‘16px’

textAlignment string

text alignment

Defaults to ‘Center’

textOverflow string

Specifies the chart title text overflow

Defaults to ‘Trim’