This commit is contained in:
salam committed 2026-06-03 10:10:53 +02:00
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));