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);
}
// 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 = [

View file

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