Skip to main content

Chart title

The chart title is a label that appears on the top, left, bottom, or right of the chart.

Chart.js v2 (default)

Customize your chart title by providing an options.title object.

You may specify a list of strings to show a multi-line title or subtitle. You may also set position, fontSize, fontFamily, fontColor, padding, and other attributes. See full Chart.js title documentation for more.

The example below sets options.title.display to true and options.title.text to "Basic chart title" in order to show a title at the top of the chart.

Chart.js v3 and v4

In v3, the title object has moved into options.plugins. See title documentation.