mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-17 21:00:45 +00:00
CE-740 Border & tooltip for the current use-case
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user