Correction graphique évolution des sinistres mensuels

This commit is contained in:
KONE SOREL 2025-12-26 08:53:45 +00:00
parent 3951a18b98
commit 073ae89733

View File

@ -43,13 +43,13 @@ class ControleurAccueil extends Controleur {
$dataTabClaims = json_encode($tabclaims, JSON_NUMERIC_CHECK); $dataTabClaims = json_encode($tabclaims, JSON_NUMERIC_CHECK);
// Evolution des sinistres par mois // Evolution des sinistres par mois
$claimsMonth = $this->synthese->getClaimsMonth(); $claimsMonth = $this->synthese->getClaimsMonth();
$claimsMonth = $this->synthese->getClaimsSingleMonth(); $claimsSingleMonth = $this->synthese->getClaimsSingleMonth();
$tabclaimsMonth = [ $tabclaimsMonth = [
'months' => array_column($claimsMonth, 'months'), 'months' => array_column($claimsMonth, 'months'),
'monthlyClaims' => array_column($claimsMonth, 'monthlyClaims'), 'monthlyClaims' => array_column($claimsMonth, 'monthlyClaims'),
'singleClaims' => array_column($claimsMonth, 'singleClaims') 'singleClaims' => array_column($claimsSingleMonth, 'singleClaims')
]; ];
$dataTabClaimsMonth = json_encode($tabclaimsMonth, JSON_NUMERIC_CHECK); $dataTabClaimsMonth = json_encode($tabclaimsMonth, JSON_NUMERIC_CHECK);