CE-604 Remove redundant numeric value in pie labels

This commit is contained in:
2023-10-27 14:24:59 -05:00
parent d0a7db28fe
commit 3d7502531d

View File

@ -67,6 +67,18 @@ function configs(labels: any, datasets: any)
maintainAspectRatio: false, maintainAspectRatio: false,
responsive: true, responsive: true,
plugins: { plugins: {
tooltip: {
callbacks: {
label: function(context: any)
{
////////////////////////////////////////////////////////////////////////////////
// our labels already have the value in them - so just use the label in the //
// tooltip (lib by default puts label + value, so we were duplicating value!) //
////////////////////////////////////////////////////////////////////////////////
return context.label;
}
}
},
legend: { legend: {
position: "bottom", position: "bottom",
labels: { labels: {