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 2021/05/12 12:31:50 UTC

[GitHub] [echarts] lait233 opened a new issue #14925: 饼状图无法设置grid。比如饼状图与title的间距

lait233 opened a new issue #14925:
URL: https://github.com/apache/echarts/issues/14925


   ### Version
   5.1.1
   
   ### Steps to reproduce
   ```javascript
     option = {
           legend: {
               bottom: 30,
               left: 'center',
           },
       grid: {
           left: '20%',
           right: '4%',
           bottom: '3%',
           containLabel: true,
       },
           title: {
               text: '某站点用户访问来源',
               subtext: '123',
               left: 'center',
   
           },
           tooltip: {
               trigger: 'item'
           },
   
           series: [
               {
                   name: '访问来源',
                   type: 'pie',
                   center: '50%',
                   radius: '50%',
                   label:{
                       show: true,
                       formatter: '{b}:{d}%'
                   },
                   data: [
                       {value: 1048, name: '搜索引擎'},
                       {value: 735, name: '直接访问'},
                       {value: 580, name: '邮件营销'},
                       {value: 484, name: '联盟广告'},
                       {value: 300, name: '视频广告'}
                   ],
   
               }
           ]
       };
   ```
   ### What is expected?
   可以通过grid设置饼状图上下左右的间距
   
   ### What is actually happening?
   grid不生效
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14925: 饼状图无法设置grid。比如饼状图与title的间距

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14925:
URL: https://github.com/apache/echarts/issues/14925#issuecomment-839732416






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


[GitHub] [echarts] lait233 closed issue #14925: 饼状图无法设置grid。比如饼状图与title的间距

Posted by GitBox <gi...@apache.org>.
lait233 closed issue #14925:
URL: https://github.com/apache/echarts/issues/14925


   


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


[GitHub] [echarts] fxc-start commented on issue #14925: 饼状图无法设置grid。比如饼状图与title的间距

Posted by GitBox <gi...@apache.org>.
fxc-start commented on issue #14925:
URL: https://github.com/apache/echarts/issues/14925#issuecomment-839772976


          // 饼形图半径。百分比是相对的  基于容器大小
          radius: ['10%'], 
           // 图表中心位置 left 50%  top 50%  百分比大小也是基于DOM容器大小
           center: ['50%', '50%'],
   以上是series内相关设置 radius设置饼图大小 center设置饼图在盒子中的相对位置从而可以达到视觉上产生距离


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


[GitHub] [echarts] pissang commented on issue #14925: 饼状图无法设置grid。比如饼状图与title的间距

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #14925:
URL: https://github.com/apache/echarts/issues/14925#issuecomment-840978763


   @fxc-start 饼图也有 left,top 设置


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