widget chart label integer format added
This commit is contained in:
parent
4b3774747a
commit
5397389f6e
@ -106,6 +106,11 @@ trait Charts
|
|||||||
$percent_position = $position ?: setting('localisation.percent_position');
|
$percent_position = $position ?: setting('localisation.percent_position');
|
||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
|
case 'integer':
|
||||||
|
$label = new Raw("function(value) {
|
||||||
|
return value
|
||||||
|
}");
|
||||||
|
break;
|
||||||
case 'percent':
|
case 'percent':
|
||||||
$label = new Raw("function(value) {
|
$label = new Raw("function(value) {
|
||||||
" . ($percent_position == 'right' ? "return value + '%';" : "return '%' + value;") . "
|
" . ($percent_position == 'right' ? "return value + '%';" : "return '%' + value;") . "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user