diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index 78a1625134..f2f9aba4d0 100644 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -49,7 +49,7 @@ class Helper return trim($value); } - // Static colors + // Static colors for pie charts public static function chartColors() { $colors = [ @@ -67,7 +67,8 @@ class Helper return $colors; } - // Static colors + // Static background (highlight) colors for pie charts + // This is not currently used, but might be in the near future. public static function chartBackgroundColors() { $colors = [ diff --git a/app/Http/Controllers/StatuslabelsController.php b/app/Http/Controllers/StatuslabelsController.php index cbaa72214a..0387c3a805 100755 --- a/app/Http/Controllers/StatuslabelsController.php +++ b/app/Http/Controllers/StatuslabelsController.php @@ -62,7 +62,7 @@ class StatuslabelsController extends Controller "datasets" => [ [ "data" => $points, "backgroundColor" => Helper::chartColors(), - "hoverBackgroundColor" => Helper::chartBackgroundColors() + "hoverBackgroundColor" => Helper::chartColors() ]] ]; return $result;