You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/10/31 02:20:44 UTC

[GitHub] [incubator-echarts] lahvey opened a new issue #11532: radar.axisLabel.formatter needs indicator parameter

lahvey opened a new issue #11532: radar.axisLabel.formatter needs indicator parameter
URL: https://github.com/apache/incubator-echarts/issues/11532
 
 
   current options:
   ```
   formatter: '{value} kg',
   formatter: function (value, index) {
   }
   ```
   
   Each indicator has its own formatter method, such as we need show 5kg, 10cm.
   
   这个问题在`radar.name.formatter`也出现过,已经被修复,不知道其他地方还有没有类似问题:
   ```
   formatter: function (value, indicator) {
       if (indicator.index === 1) return `${value}kg`;
       return `${value}cm`;
   }
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org