This commit is contained in:
salam committed 2026-08-30 21:25:20 +02:00
1 parent f31ade2707
commit eae581bb08
1 file changed
+7 -5
+7 -5
View File
@@ -257,11 +257,13 @@ class LoadEvents
}
}
$n = max(count($dataset_home), count($dataset_away), count($dataset_away2), count($dataset_home2));
$f = array_first($labels);
$step = round($f / $n);
$labels = [];
for ($i = $f; $i >= 0; $i -= $step) {
$labels[] = $i;
if($n){
$f = array_first($labels);
$step = round($f / $n);
$labels = [];
for ($i = $f; $i >= 0; $i -= $step) {
$labels[] = $i;
}
}
}