title

Configuration Structure

title: {
text: string,
align: 'left' | 'center' | 'right',
margin: number,
offsetX: number,
offsetY: number,
floating: boolean,
style: { ... },
fontSize: string,
fontFamily: string,
fontWeight: string | number,
color: string,
}

text

Default: undefined

Text to display as a title of chart

align

Default: 'left'

Alignment of title relative to chart area.
Possible Options

  • left
  • center
  • right

margin

Default: 5

Vertical spacing around the title text

offsetX

Default: 0

Sets the left offset for title text

offsetY

Default: 0

Sets the top offset for title text

floating

Default: false

The floating option will take out the title text from the chart area and make it float on top of the chart.

style

fontSize

title.style.fontSize
Default: '14px'

Font Size of the title text

fontWeight

title.style.fontWeight
Default: 900

Font Weight of the title text

fontFamily

title.style.fontFamily
Default: undefined

Font Family of the title text

color

title.style.color
Default: undefined

Fore color of the title text