TitleSettings

23 Sep 20251 minute to read

Configures the title settings in chart and 3D chart.

Properties

background string

Background of the title border.

Defaults to ‘transparent’

border TitleBorderModel

Options to customize the border of the chart title.

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 ‘500’

opacity number

Opacity for the text.

Defaults to 1

position TitlePosition

Defines the position for the chart title.

  • Top: Displays the title at the top of the chart.
  • Left: Displays the title at the left of the chart.
  • Bottom: Displays the title at the bottom of the chart.
  • Right: Displays the title at the right of the chart.
  • Custom: Displays the title based on the given x and y values.

Defaults to ‘Top’

size string

Font size for the text.

Defaults to ‘15px’

textAlignment Alignment

text alignment.

Defaults to ‘Center’

textOverflow TextOverflow

Specifies the chart title text overflow.

Defaults to ‘Wrap’

x number

Defines the X coordinate for the chart title.

Defaults to 0

y number

Defines the Y coordinate for the chart title.

Defaults to 0