wip
This commit is contained in:
1 parent
f31ade2707
commit
eae581bb08
1 file changed
+7
-5
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user