Changed logic in hourly page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 15s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Larastan / larastan (pull_request) Failing after 4m58s
Laravel Pint / pint (pull_request) Successful in 2m58s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 15s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Larastan / larastan (pull_request) Failing after 4m58s
Laravel Pint / pint (pull_request) Successful in 2m58s
This commit is contained in:
@@ -140,14 +140,15 @@ class ItemOverview extends ChartWidget
|
||||
}, $shiftedKeys);
|
||||
}
|
||||
|
||||
$planData = [];
|
||||
$cumulativeQuantity = 0;
|
||||
$totalQuantity = array_sum($orderedData);
|
||||
|
||||
foreach ($orderedData as $quantity) {
|
||||
$cumulativeQuantity += $quantity;
|
||||
$planQuantity = round($totalQuantity / 22.5, 2);
|
||||
|
||||
$planData[] = round($cumulativeQuantity / 22.5, 2);
|
||||
}
|
||||
$planData = array_fill(
|
||||
0,
|
||||
count($orderedData),
|
||||
$planQuantity
|
||||
);
|
||||
|
||||
return [
|
||||
'datasets' => [
|
||||
|
||||
Reference in New Issue
Block a user