Make regular and highlight colors the same, since we're not using highlight colors in the pie chart yet

This commit is contained in:
snipe 2016-05-24 16:19:44 -07:00
parent 0c33575962
commit 37be587c39
2 changed files with 4 additions and 3 deletions

View file

@ -49,7 +49,7 @@ class Helper
return trim($value); return trim($value);
} }
// Static colors // Static colors for pie charts
public static function chartColors() public static function chartColors()
{ {
$colors = [ $colors = [
@ -67,7 +67,8 @@ class Helper
return $colors; 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() public static function chartBackgroundColors()
{ {
$colors = [ $colors = [

View file

@ -62,7 +62,7 @@ class StatuslabelsController extends Controller
"datasets" => [ [ "datasets" => [ [
"data" => $points, "data" => $points,
"backgroundColor" => Helper::chartColors(), "backgroundColor" => Helper::chartColors(),
"hoverBackgroundColor" => Helper::chartBackgroundColors() "hoverBackgroundColor" => Helper::chartColors()
]] ]]
]; ];
return $result; return $result;