parent
d1d7526ad2
commit
cae8cea482
|
@ -366,7 +366,7 @@ class Donut
|
|||
protected function shortenLabel($label)
|
||||
{
|
||||
if (is_numeric($label) && strlen($label) > 3) {
|
||||
return '~' . substr(round($label, -3), 0, 1) . 'k';
|
||||
return round($label, -3)/1000 . 'k';
|
||||
}
|
||||
|
||||
return $label;
|
||||
|
|
Loading…
Reference in New Issue