mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Added static colors for charts
This commit is contained in:
parent
780c0e678d
commit
3b838ca867
|
@ -49,6 +49,43 @@ class Helper
|
|||
return trim($value);
|
||||
}
|
||||
|
||||
// Static colors
|
||||
public static function chartColors()
|
||||
{
|
||||
$colors = [
|
||||
'#f56954',
|
||||
'#00a65a',
|
||||
'#f39c12',
|
||||
'#00c0ef',
|
||||
'#3c8dbc',
|
||||
'#d2d6de',
|
||||
'#3c8dbc',
|
||||
'#3c8dbc',
|
||||
'#3c8dbc',
|
||||
|
||||
];
|
||||
return $colors;
|
||||
}
|
||||
|
||||
// Static colors
|
||||
public static function chartBackgroundColors()
|
||||
{
|
||||
$colors = [
|
||||
'#f56954',
|
||||
'#00a65a',
|
||||
'#f39c12',
|
||||
'#00c0ef',
|
||||
'#3c8dbc',
|
||||
'#d2d6de',
|
||||
'#3c8dbc',
|
||||
'#3c8dbc',
|
||||
'#3c8dbc',
|
||||
|
||||
];
|
||||
return $colors;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static function ParseFloat($floatString)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue