From 37be587c390e1971049c1dbbeb470d8b1e54a5f4 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 24 May 2016 16:19:44 -0700 Subject: [PATCH] Make regular and highlight colors the same, since we're not using highlight colors in the pie chart yet --- app/Helpers/Helper.php | 5 +++-- app/Http/Controllers/StatuslabelsController.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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;