Skip to main content

AxisTitleSpec

Definition of the title for an axis

Extends

Properties

align?

optional align: AxisTitleAlignment

How to align the text - start, middle or end


fillRatio?

optional fillRatio: number

If the title is too wide for the chart, this defines the amount of the width of the chart that it should fill, before being wrapped. Ignored if you set titleWrap:false. Defaults to 0.9.

Inherited from

BaseTitleSpec.fillRatio


font?

optional font: FontSpec

Spec for the font to use for the axis. Default size is 14px and style is 'normal'.


padding?

optional padding: number

How much blank space to leave after the title.

Inherited from

BaseTitleSpec.padding


text?

optional text: string

The text to display.

Inherited from

BaseTitleSpec.text


wrap?

optional wrap: boolean

If the title is too wide for the chart, this flag controls whether or not the title is wrapped. It defaults to true.

Inherited from

BaseTitleSpec.wrap