diff --git a/Vue/Ficheadherent/index.php b/Vue/Ficheadherent/index.php index f1550e8..b10185c 100644 --- a/Vue/Ficheadherent/index.php +++ b/Vue/Ficheadherent/index.php @@ -561,7 +561,7 @@ data: { labels: dataConso.garanties, datasets: [{ - label: 'Dépenses', + label: '', 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 = ` ${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}% )`; } else { - tooltip += ' (plafond illimité)'; + tooltip += ' '; } return tooltip; @@ -632,7 +632,7 @@ x: { title: { display: true, - text: 'Garanties', + text: '', font: { weight: 'bold' } diff --git a/Vue/Fichebeneficiaire/index.php b/Vue/Fichebeneficiaire/index.php index bb10a6b..8073039 100644 --- a/Vue/Fichebeneficiaire/index.php +++ b/Vue/Fichebeneficiaire/index.php @@ -546,7 +546,7 @@ data: { labels: dataConso.garanties, datasets: [{ - label: 'Dépenses', + label: '', 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: `: ${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 = `: ${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 += ' '; } return tooltip; @@ -602,7 +602,7 @@ beginAtZero: true, title: { display: true, - text: `Montant des dépenses`, + text: '', font: { weight: 'bold' } @@ -617,7 +617,7 @@ x: { title: { display: true, - text: 'Garanties', + text: '', font: { weight: 'bold' }