wip
This commit is contained in:
1 parent
7cfb5df2a4
commit
10801ddab2
4 files changed
+32
-15
No files matched your search
@@ -6,6 +6,10 @@ class HelperMoveingAveragePerformens
|
||||
{
|
||||
public static function get(&$data)
|
||||
{
|
||||
if (! $data) {
|
||||
return;
|
||||
}
|
||||
|
||||
$data['labels'] = array_slice($data['labels'], 2);
|
||||
|
||||
$datasets = $data['datasets'];
|
||||
@@ -29,6 +33,10 @@ class HelperMoveingAveragePerformens
|
||||
|
||||
public static function fillHoles(array &$arr)
|
||||
{
|
||||
if (! $arr) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (! $arr[0]) {
|
||||
// get first value in array and copy it to start if start is null
|
||||
$arr[0] = current(array_filter($arr));
|
||||
|
||||
Reference in new issue
Block a user