title

Specifies the title for the argument axis.

Type:

String

|

Object

If you only wish to set the text for the axis title, assign this text to the title property directly. Set the text property and other properties of the title configuration object if you need to customize title options. For an overview of axis titles, refer to the Axis Titles topic.

If you need to set a common value for the titles of all axes, use the commonAxisSettings | title configuration object. It exposes the properties that can be specified for titles of all axes at once. Note that the values specified for the argument axis individually (in the argumentAxis | title object) override the values that are specified for all axes (in the commonAxisSettings | title object).

Show Example:
jQuery

In the example below, the argument axis title text is assigned directly to the title field.


                                    

                                    

font

Specifies font options for an axis title.

Type:

Object

Show Example:
jQuery

Here, the argument axis title text is colored in red and enlarged up to the size of 30 pixels.


                                    

                                    

margin

Specifies a margin for an axis title in pixels.

Type:

Number

Default Value: 6

AxesTitleMargin ChartJS

text

Specifies the text for the argument axis title.

Type:

String

Default Value: undefined

If you do not wish to set the other properties of the title object, assign the title text to the title property directly.

Show Example:
jQuery

In the example below, the argument axis title text is specified using the text field of the title option.