va
This commit is contained in:
parent
ebed25687a
commit
4e78d73609
|
|
@ -561,7 +561,7 @@
|
|||
data: {
|
||||
labels: dataConso.garanties,
|
||||
datasets: [{
|
||||
label: 'Dépenses',
|
||||
label: '<?= _('Dépenses')?>',
|
||||
data: dataConso.depenses,
|
||||
backgroundColor: 'rgba(54, 162, 235, 0.7)',
|
||||
borderColor: 'rgba(54, 162, 235, 1)',
|
||||
|
|
@ -598,13 +598,13 @@
|
|||
callbacks: {
|
||||
label: function(context) {
|
||||
const plafond = dataConso.plafonds[context.dataIndex];
|
||||
let tooltip = `Dépenses: ${formatMoney(context.parsed.y)}`;
|
||||
let tooltip = `<?= _('Dépenses').':'?> ${formatMoney(context.parsed.y)}`;
|
||||
|
||||
if (plafond !== null) {
|
||||
const pourcentage = Math.min(100, Math.round((context.parsed.y / plafond) * 100));
|
||||
tooltip += ` (${pourcentage}% du plafond)`;
|
||||
tooltip += ` (${pourcentage}% <?= _('du plafond')?>)`;
|
||||
} else {
|
||||
tooltip += ' (plafond illimité)';
|
||||
tooltip += ' <?= _('(plafond illimité)')?>';
|
||||
}
|
||||
|
||||
return tooltip;
|
||||
|
|
@ -632,7 +632,7 @@
|
|||
x: {
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Garanties',
|
||||
text: '<?= _('Garanties')?>',
|
||||
font: {
|
||||
weight: 'bold'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -546,7 +546,7 @@
|
|||
data: {
|
||||
labels: dataConso.garanties,
|
||||
datasets: [{
|
||||
label: 'Dépenses',
|
||||
label: '<?= _('Dépenses')?>',
|
||||
data: dataConso.depenses,
|
||||
backgroundColor: 'rgba(54, 162, 235, 0.7)',
|
||||
borderColor: 'rgba(54, 162, 235, 1)',
|
||||
|
|
@ -569,7 +569,7 @@
|
|||
borderWidth: 2,
|
||||
borderDash: [6, 6],
|
||||
label: {
|
||||
content: `Plafond: ${formatMoney(plafond)}`,
|
||||
content: `<?= _('Plafond')?>: ${formatMoney(plafond)}`,
|
||||
enabled: true,
|
||||
position: 'right'
|
||||
}
|
||||
|
|
@ -583,13 +583,13 @@
|
|||
callbacks: {
|
||||
label: function(context) {
|
||||
const plafond = dataConso.plafonds[context.dataIndex];
|
||||
let tooltip = `Dépenses: ${formatMoney(context.parsed.y)}`;
|
||||
let tooltip = `<?= _('Dépenses')?>: ${formatMoney(context.parsed.y)}`;
|
||||
|
||||
if (plafond !== null) {
|
||||
const pourcentage = Math.min(100, Math.round((context.parsed.y / plafond) * 100));
|
||||
tooltip += ` (${pourcentage}% du plafond)`;
|
||||
} else {
|
||||
tooltip += ' (plafond illimité)';
|
||||
tooltip += ' <?= _('(plafond illimité)')?>';
|
||||
}
|
||||
|
||||
return tooltip;
|
||||
|
|
@ -602,7 +602,7 @@
|
|||
beginAtZero: true,
|
||||
title: {
|
||||
display: true,
|
||||
text: `Montant des dépenses`,
|
||||
text: '<?= _("Montant des dépenses") ?>',
|
||||
font: {
|
||||
weight: 'bold'
|
||||
}
|
||||
|
|
@ -617,7 +617,7 @@
|
|||
x: {
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Garanties',
|
||||
text: '<?= _('Garanties')?>',
|
||||
font: {
|
||||
weight: 'bold'
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user