Is there a way to display legend's data over the chart in chart.js?

๐Ÿ‘:-1

The options can be added while creating new chart

var pieChart = new Chart(canvas, {
type: "pie",
data: data,
options: {
     legend: {
        display: true,
        position : 'top'
     },
     tooltips: {
        enabled: false
     }
}
});

Leave a comment