darkSideOfMoon opened a new issue #8993: 如何设置饼图外拉的线的起点位置,使其不是从正中位置出来,而是可以自定义位置。
URL: https://github.com/apache/incubator-echarts/issues/8993
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   
   
   如何设置饼图外拉的线的起点位置,使其不是从正中位置出来,而是可以自定义位置。
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: echarts 3
   + Browser version [浏览器类型和版本]: chrome 64
   + OS Version [操作系统类型和版本]: windows 7
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
   可以设置饼图外拉线的起始位置。
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
       title : {
           text: '某站点用户访问来源',
           subtext: '纯属虚构',
           x:'center'
       },
       tooltip : {
           trigger: 'item',
           formatter: "{a} <br/>{b} : {c} ({d}%)"
       },
       legend: {
           orient: 'vertical',
           left: 'left',
           data: ['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
       },
       series : [
           {
               name: '访问来源',
               type: 'pie',
               radius : '55%',
               center: ['50%', '60%'],
               data:[
                   {value:335, name:'直接访问'},
                   {value:310, name:'邮件营销'},
                   {value:234, name:'联盟广告'},
                   {value:135, name:'视频广告'},
                   {value:1548, name:'搜索引擎'}
               ],
               itemStyle: {
                   emphasis: {
                       shadowBlur: 10,
                       shadowOffsetX: 0,
                       shadowColor: 'rgba(0, 0, 0, 0.5)'
                   }
               }
           }
       ]
   };
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   
   
![1](https://user-images.githubusercontent.com/42800681/44924140-fd2dfe80-ad7c-11e8-857a-582488477bb1.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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to