mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -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);
|
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 = [
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue