add deploy
Tests / PHPUnit (push) Successful in 1m16s

This commit is contained in:
root
2026-07-16 00:34:19 -04:00
parent 7c341ca624
commit df4e2cf994
2 changed files with 95 additions and 3 deletions
+10 -3
View File
@@ -156,13 +156,20 @@ $chartLabels = array_map($formatDateKey, $dateOrder);
<script>
document.addEventListener('DOMContentLoaded', function() {
const ctx = document.getElementById('lateChart').getContext('2d');
const lateChart = document.getElementById('lateChart');
if (!lateChart || typeof Chart === 'undefined') {
return;
}
// PHP to JS data conversion
const labels = <?= json_encode($chartLabels) ?>;
const counts = <?= json_encode($chartData) ?>;
new Chart(ctx, {
if (!labels.length || !counts.length) {
return;
}
new Chart(lateChart.getContext('2d'), {
type: 'bar',
data: {
labels: labels,