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));
|
$n = max(count($dataset_home), count($dataset_away), count($dataset_away2), count($dataset_home2));
|
||||||
$f = array_first($labels);
|
if($n){
|
||||||
$step = round($f / $n);
|
$f = array_first($labels);
|
||||||
$labels = [];
|
$step = round($f / $n);
|
||||||
for ($i = $f; $i >= 0; $i -= $step) {
|
$labels = [];
|
||||||
$labels[] = $i;
|
for ($i = $f; $i >= 0; $i -= $step) {
|
||||||
|
$labels[] = $i;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user