You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/10/18 09:53:11 UTC

[GitHub] sxmpasch commented on issue #9251: Problems with Echart Radar

sxmpasch commented on issue #9251: Problems with Echart Radar
URL: https://github.com/apache/incubator-echarts/issues/9251#issuecomment-430948074
 
 
   As you mentioned, you can use formatter in the label:
   - adding just a "%" would be easy:  "formatter": '{c}%'
   - if you want to limit the number of decimals, you have to use a callback:
   ```
   "formatter": function (params, ticket, callback) {
           return parseInt(params.value).toFixed(2)+' %';
       }
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org