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/24 03:54:14 UTC

[GitHub] [echarts] zemelLeong opened a new issue #15021: The pie chart border settings display bug 【饼图设置borderColor和borderWidth显示有问题】

zemelLeong opened a new issue #15021:
URL: https://github.com/apache/echarts/issues/15021


   ### Version
   5.1.1
   
   ### Reproduction link
   [https://codesandbox.io/s/echarts-pie-border-bug-sm830?file=/src/option.js](https://codesandbox.io/s/echarts-pie-border-bug-sm830?file=/src/option.js)
   
   ### Steps to reproduce
   Use this option. The v5.1.0 pie circle center displays abnormal. The old version v4.x is ok.
   ```
   option = {
       title: {
           text: '某站点用户访问来源',
           subtext: '纯属虚构',
           left: 'center'
       },
       tooltip: {
           trigger: 'item'
       },
       legend: {
           orient: 'vertical',
           left: 'left',
       },
       color: ['#714fe3', '#5f75e5', '#5a9be7', '#5a9be7'],
       series: [
           {
               name: '访问来源',
               type: 'pie',
               radius: '50%',
               // itemStyle: {
               //     borderColor: 'red',
               //     borderWidth: 5,
               // },
               data: [
                   {
                       value: 99,
                       name: '搜索引擎',
                   },
                   {
                       value: 9,
                       name: '直接访问',
                       itemStyle: {
                           
                       },
                   },
                   {
                       value: 19,
                       name: '邮件营销',
                       itemStyle: {
                       },
                   },
                   {
                       value: 8,
                       name: '联盟广告',
                   },
               ],
               itemStyle: {
                   borderColor: 'red',
                   borderWidth: '5',
               },
               emphasis: {
                   itemStyle: {
                       shadowBlur: 10,
                       shadowOffsetX: 0,
                       shadowColor: 'rgba(0, 0, 0, 0.5)'
                   }
               }
           }
       ]
   };
   ```
   
   ### What is expected?
   pie circle center is normal
   
   ### What is actually happening?
   pie circle center is abnormal
   
   ![image](https://user-images.githubusercontent.com/26835087/119294258-9f594780-bc86-11eb-8256-314969c7da87.png)
   ![image](https://user-images.githubusercontent.com/26835087/119294288-ae3ffa00-bc86-11eb-83f9-c46434e8b010.png)
   
   
   <!-- 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] zemelLeong closed issue #15021: The pie chart border settings display bug 【饼图设置borderColor和borderWidth显示有问题】

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


   


-- 
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 edited a comment on issue #15021: The pie chart border settings display bug 【饼图设置borderColor和borderWidth显示有问题】

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #15021:
URL: https://github.com/apache/echarts/issues/15021#issuecomment-846730143


   v5 provides [borderJoin](https://echarts.apache.org/en/option.html#series-pie.itemStyle.borderJoin). You can set it to `round` to avoid this issue. 
   
   But we still need to change the default value so the display can be good by default @plainheart 


-- 
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] zemelLeong commented on issue #15021: The pie chart border settings display bug 【饼图设置borderColor和borderWidth显示有问题】

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


   Thanks. I have been fixed it.


-- 
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 #15021: The pie chart border settings display bug 【饼图设置borderColor和borderWidth显示有问题】

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






-- 
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 #15021: The pie chart border settings display bug 【饼图设置borderColor和borderWidth显示有问题】

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


   v5 provides [borderJoin](https://echarts.apache.org/en/option.html#series-pie.itemStyle.borderJoin). You can set it to `round` to avoid this issue.


-- 
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 #15021: The pie chart border settings display bug 【饼图设置borderColor和borderWidth显示有问题】

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


   This issue is labeled with `difficulty: easy`.
   @zemelLeong Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.
   
   Please have a look at [How to debug ECharts](https://github.com/apache/echarts/blob/master/CONTRIBUTING.md#how-to-debug-echarts) if you'd like to give a try. 🤓


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