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/24 11:17:28 UTC

[GitHub] zhjibi742626083 opened a new issue #9271: 饼图环形图里面的提示标题如果名字重复的话只显示一个名字

zhjibi742626083 opened a new issue #9271: 饼图环形图里面的提示标题如果名字重复的话只显示一个名字
URL: https://github.com/apache/incubator-echarts/issues/9271
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   
   饼图环形图里面的提示标题如果名字重复的话只显示一个名字
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:4.1.0
   + Browser version [浏览器类型和版本]:chremo 70
   + OS Version [操作系统类型和版本]:win 10
   
   
   
   ### Expected behaviour [期望结果]
   根据传入的参数值,是什么就显示什么,而不是如果series里面的data里面的对象如果name值相同的话就显示一个
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
   tooltip: {
           trigger: 'item',
           formatter: "{a} <br/>{b}: {c} ({d}%)"
       },
       legend: {
           orient: 'vertical',
           x: 'left',
           data:['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
       },
       series: [
           {
               name:'访问来源',
               type:'pie',
               radius: ['50%', '70%'],
               avoidLabelOverlap: false,
               label: {
                   normal: {
                       show: false,
                       position: 'center'
                   },
                   emphasis: {
                       show: true,
                       textStyle: {
                           fontSize: '30',
                           fontWeight: 'bold'
                       }
                   }
               },
               labelLine: {
                   normal: {
                       show: false
                   }
               },
               data:[
                   {value:335, name:'直接访问'},
                   {value:310, name:'直接访问'},
                   {value:234, name:'联盟广告'},
                   {value:135, name:'视频广告'},
                   {value:1548, name:'搜索引擎'}
               ]
           }
       ]
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   ![69cbe8a0-f5b8-438a-852c-43471613fc17](https://user-images.githubusercontent.com/29059279/47426571-2472dc00-d7c0-11e8-9b2d-aedc1b2abff0.png)
   ![77a44e2a-b0b4-43d7-a646-a57fe974805c](https://user-images.githubusercontent.com/29059279/47426694-85021900-d7c0-11e8-8033-1f6d4f39b620.png)
   
   

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