CE-740 Border & tooltip for the current use-case

This commit is contained in:
2023-11-16 16:20:11 -06:00
parent c899e5712b
commit aa7f9e93f1

View File

@ -45,18 +45,39 @@ export const options = {
animation: { animation: {
duration: 0 duration: 0
}, },
elements: {
bar: {
borderRadius: 4
}
},
plugins: { plugins: {
tooltip: { tooltip: {
// todo - some configs around this // todo - some configs around this
enabled: false callbacks: {
title: function(context: any)
{
return ("");
},
label: function(context: any)
{
if(context.dataset.label.startsWith(context.label))
{
return `${context.label} (${context.formattedValue})`;
}
else
{
return ("");
}
}
}
}, },
legend: { legend: {
position: "bottom", position: "bottom",
labels: { labels: {
usePointStyle: true, usePointStyle: true,
pointStyle: "circle", pointStyle: "circle",
boxHeight: 8, boxHeight: 6,
boxWidth: 8, boxWidth: 6,
padding: 12, padding: 12,
font: { font: {
size: 14 size: 14