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 2020/07/15 13:53:28 UTC

[GitHub] [incubator-echarts] quillblue edited a comment on issue #12970: 关于仪表盘data值为空的时候,显示NAN的问题

quillblue edited a comment on issue #12970:
URL: https://github.com/apache/incubator-echarts/issues/12970#issuecomment-658781186


   @allen-kobe 
   使用[series(gauge).detail.formatter](https://echarts.apache.org/en/option.html#series-gauge.detail.formatter) 的回调函数可以解决这个问题。下面的代码给出了一个样例。
   
   `formatter: function (value) {
      if (isNaN(value)) {
           return '-'
      } 
      else {return value};
   }`
   
   For community, I don't think this is a bug.


----------------------------------------------------------------
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



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