Answers for "add a title to a chart in js"

0

chart js title

var chart = new Chart(ctx, {
    type: 'line',
    data: data,
    options: {
        title: {
            display: true,
            text: 'Custom Chart Title'
        }
    }
});
Posted by: Guest on April-30-2020
1

chart js title

var chart = new Chart(ctx, {
    type: 'line',
    data: data,
    options: {
        plugins: {
            title: {
                display: true,
                text: 'Custom Chart Title'
            }
        }
    }
});
Posted by: Guest on January-25-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language