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/08/03 07:23:00 UTC

[GitHub] simonguo commented on issue #8800: Tree tooltip 存在的问题。

simonguo commented on issue #8800: Tree tooltip 存在的问题。
URL: https://github.com/apache/incubator-echarts/issues/8800#issuecomment-410168451
 
 
   不知道这做的什么东西,登录不上。
   
   ![image](https://user-images.githubusercontent.com/1203827/43629709-9a3abe60-9730-11e8-9225-6824da5d5fd0.png)
   
   
   以下示例代码,我想自定义 formatter, 格式为: "xxx - > vvv -> ccc"
   
   ```js
   myChart.showLoading();
   $.get('data/asset/data/flare.json', function (data) {
       myChart.hideLoading();
   
       myChart.setOption(option = {
           tooltip: {
               trigger: 'item',
               triggerOn: 'mousemove',
               formatter:'{b0}'
           },
           series: [
               {
                   type: 'tree',
                   data: [data],
                   top: '18%',
                   bottom: '14%',
                   layout: 'radial',
                   symbol: 'emptyCircle',
                   symbolSize: 7,
                   initialTreeDepth: 3,
                   animationDurationUpdate: 750
               }
           ]
       });
   });
   ```
   
   
   
   
   
   

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