Title
Namespace: , the global options for the chart title is defined in Chart.defaults.plugins.title
.
'top'
'left'
'bottom'
'right'
Alignment of the title. Options are:
'center'
'end'
This example shows how to specify separate top and bottom title text padding:
var chart = new Chart(ctx, {
type: 'line',
data: data,
options: {
plugins: {
title: {
text: 'Custom Chart Title',
padding: {
top: 10,
bottom: 30
}
}
}