I need to show the data labels inside the canvas so that the user can see the value of the bar. How I can manage the bar data labels?
datalabels: {
display: true,
color: ["#858282", "#4B8533", "#858282", "#858282", "#858282", "#858282", "#858282", "#858282", "#858282"],
clamp: true,
// formatter: (val, context) => (`${val}`),
formatter: function(value) {
return Math.round(value) + '%';
},
anchor: 'end',
align: 'top',
font: {
// weight: 'bold',
layout: {
padding: {
top: 20,
}
},
size: 25,
family: "'Bebas Neue'",
lineHeight: 1.3,
}
}