Maj
This commit is contained in:
parent
f824e02558
commit
baab67d018
|
|
@ -64,6 +64,10 @@ class ControleurAccueil extends Controleur {
|
||||||
30000000
|
30000000
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// SINISTRALITÉ (manquante jusqu’ici)
|
||||||
|
$lossRatioLabels = ["Jan", "Fév", "Mar", "Avr", "Mai", "Juin"];
|
||||||
|
$lossRatioValues = [62, 68, 71, 65, 73, 69]; // %
|
||||||
|
|
||||||
$this->genererVue(
|
$this->genererVue(
|
||||||
array
|
array
|
||||||
(
|
(
|
||||||
|
|
@ -73,7 +77,9 @@ class ControleurAccueil extends Controleur {
|
||||||
'claimsLabels' => $claimsLabels,
|
'claimsLabels' => $claimsLabels,
|
||||||
'claimsValues' => $claimsValues,
|
'claimsValues' => $claimsValues,
|
||||||
'months' => $months,
|
'months' => $months,
|
||||||
'monthlyCotisations' => $monthlyCotisations
|
'monthlyCotisations' => $monthlyCotisations,
|
||||||
|
'lossRatioLabels' => $lossRatioLabels,
|
||||||
|
'lossRatioValues' => $lossRatioValues
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="grid-2">
|
||||||
|
<div class="card">
|
||||||
|
<h3><?= _('Sinistralité') ?></h3>
|
||||||
|
<div class="chart">
|
||||||
|
<canvas id="lossRatioBar"></canvas>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -108,4 +117,26 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Sinistralité
|
||||||
|
new Chart(document.getElementById('lossRatioBar'), {
|
||||||
|
type: 'bar',
|
||||||
|
data: {
|
||||||
|
labels: <?= json_encode($lossRatioLabels) ?>,
|
||||||
|
datasets: [{
|
||||||
|
label: "Sinistralité (%)",
|
||||||
|
data: <?= json_encode($lossRatioValues) ?>
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
options: {
|
||||||
|
scales: {
|
||||||
|
y: {
|
||||||
|
beginAtZero: true,
|
||||||
|
max: 100
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -637,6 +637,9 @@ console.groupEnd();
|
||||||
<!-- Service Worker Registration -->
|
<!-- Service Worker Registration -->
|
||||||
<script src="/Js/sw-register.js?ver=2025.12.22.00"></script>
|
<script src="/Js/sw-register.js?ver=2025.12.22.00"></script>
|
||||||
|
|
||||||
|
<!-- Chart.js -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// CORRECTION URGENTE - FORCE LE BON MENU
|
// CORRECTION URGENTE - FORCE LE BON MENU
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user