mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Make regular and highlight colors the same, since we're not using highlight colors in the pie chart yet
This commit is contained in:
parent
0c33575962
commit
37be587c39
|
@ -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 = [
|
||||
|
|
|
@ -62,7 +62,7 @@ class StatuslabelsController extends Controller
|
|||
"datasets" => [ [
|
||||
"data" => $points,
|
||||
"backgroundColor" => Helper::chartColors(),
|
||||
"hoverBackgroundColor" => Helper::chartBackgroundColors()
|
||||
"hoverBackgroundColor" => Helper::chartColors()
|
||||
]]
|
||||
];
|
||||
return $result;
|
||||
|
|
Loading…
Reference in a new issue