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:

    1. var chart = new Chart(ctx, {
    2. type: 'line',
    3. data: data,
    4. options: {
    5. plugins: {
    6. title: {
    7. text: 'Custom Chart Title',
    8. padding: {
    9. top: 10,
    10. bottom: 30
    11. }
    12. }
    13. }