|
format barchart aggregated labels? |
Posted by Dave on Dec-12-2019 01:47 |
|
Is there a way to format the labels when using setAggregateLabelStyle for bar charts? I'm using the PHP version and the numbers are coming out as 1234.1340957 instead of what I'd like, which would be 1,234. |
Re: format barchart aggregated labels? |
Posted by Peter Kwan on Dec-12-2019 02:45 |
|
Hi Dave,
Yes, you can use Layer.setAggregateLabelFormat. For example:
$layer->setAggregateLabelFormat("{value|0,.}");
Hope this can help.
Regards
Peter Kwan |
|