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/11/15 04:24:39 UTC

[GitHub] xiaotiandada commented on issue #2590: 散点地图的tooltip中显示地理坐标和数据,怎样不显示地理坐标

xiaotiandada commented on issue #2590: 散点地图的tooltip中显示地理坐标和数据,怎样不显示地理坐标
URL: https://github.com/apache/incubator-echarts/issues/2590#issuecomment-438912860
 
 
   2018-11-15
   
   我刚遇到这个问题,我只要显示名字就可以了
   
   在formatter里面做判断
   
   ```js
      if (Array.isArray(value)){
           res = `<span style='color:#fff;'>${name} </span>`
        } else {
           res = `<span style='color:#fff;'>${name}</span><br/>数据:${value}`
        }
   ```

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