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/04/29 06:28:28 UTC

[GitHub] [echarts] MissThee opened a new issue #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

MissThee opened a new issue #14839:
URL: https://github.com/apache/echarts/issues/14839


   ### Version
   5.1.1
   
   ### Steps to reproduce
   use this example 
   and set option.series[0].data as follow:
   [
     {value: 1048, name: '搜索引擎'},
     {value: 0, name: '直接访问'},
     {value: 0, name: '邮件营销'},
     {value: 0, name: '联盟广告'},
     {value: 0, name: '视频广告'}
   ]
   
   ### What is expected?
   When using borderWidth and only one piece of data has a value and the ratio is 100%, the pie chart should be completely closed
   ![小Q截图-20210429142552](https://user-images.githubusercontent.com/11582624/116510132-03425780-a8f7-11eb-8f55-9bdba23bc073.png)
   
   ### What is actually happening?
   There is a gap in the middle. It’s hard to distinguish between [100%,0] and [99.9%, 0.01%]
   ![小Q截图-20210429142541](https://user-images.githubusercontent.com/11582624/116510118-fd4c7680-a8f6-11eb-9637-f76c41f2558f.png)
   
   
   ---
   I hope to be able to automatically close the border when the pie chart has only one data value accounting for 100%
   
   <!-- 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] MissThee commented on issue #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

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


   Well, I personally think that the purpose of the gap is to separate different data, so the same data does not need to be separated from itself. 
   So...I have another doubt. When the borderWidth is set and only one 100% data, if the mouse is put on, the separation gap will be closed, shouldn't it be kept? Intuitively they should maintain consistent results.


-- 
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] MissThee removed a comment on issue #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

Posted by GitBox <gi...@apache.org>.
MissThee removed a comment on issue #14839:
URL: https://github.com/apache/echarts/issues/14839#issuecomment-830718450


   Funny. So ,how to keep the legend when I removed those data ...? 


-- 
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] 100pah edited a comment on issue #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

Posted by GitBox <gi...@apache.org>.
100pah edited a comment on issue #14839:
URL: https://github.com/apache/echarts/issues/14839#issuecomment-830716638


   @MissThee Remove the data items that value is `0`, the gap will diappear.
   
   
   @Ovilia @pissang 
   
   In this case there is no gap.
   ```js
   data: [
           { name: 's', value: 3.8 }
   ]
   ```
   
   But in this case there is a gap.
   ```js
   data: [
           { name: 's', value: 3.8 },
           { name: 'd', value: 0 },
   ]
   ```
   
   Should it be an issue? I've no idea.
   
   


-- 
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] MissThee commented on issue #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

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


   Ovilia's method is OK, I can set borderWidth to be 0 in that case.
   But, I can't accept that infinite approaching 100 has the same meaning as 100, and 0 === undefined.


-- 
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] MissThee closed issue #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

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


   


-- 
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 #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

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


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


-- 
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] MissThee commented on issue #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

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


   > I'm afraid you have to accept the result that the displayed sector won't represent the data exactly if you set a white border to simulate the gap. No matter there is only one data or there are multiples.
   
   What can I say, if the designer insists on designing like this. And it seems just me think that's weird...
   ![无标题](https://user-images.githubusercontent.com/11582624/116522260-92f00200-a907-11eb-802a-5b173603b3f8.png)
   


-- 
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 #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

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


   I'm afraid you have to accept the result that the displayed sector won't represent the data exactly if you set a white border to simulate the gap. No matter there is only one data or there are multiples.


-- 
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] Ovilia commented on issue #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

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


   I think this border is expected. Because if the data is 99.99%, it should have the border, so as 99.9999% ...
   So 100% should not have an abrupt change.
   If you don't want it, you can set borderWidth to be 0 when data is 100%.


-- 
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] MissThee commented on issue #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

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


   Funny. So ,how to keep the legend when I removed those data ...? 


-- 
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] MissThee commented on issue #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

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


   > @MissThee Remove the data items that value is `0`, the gap will diappear.
   > 
   > 
   > 
   > 
   > 
   > @Ovilia @pissang 
   > 
   > 
   > 
   > In this case there is no gap.
   > 
   > ```js
   > 
   > data: [
   > 
   >         { name: 's', value: 3.8 }
   > 
   > ]
   > 
   > ```
   > 
   > 
   > 
   > But in this case there is a gap.
   > 
   > ```js
   > 
   > data: [
   > 
   >         { name: 's', value: 3.8 },
   > 
   >         { name: 'd', value: 0 },
   > 
   > ]
   > 
   > ```
   > 
   > 
   > 
   > Should it be an issue? I've no idea.
   > 
   > 
   > 
   > 
   
   Funny. So ,how to keep the legend when I removed those data ...?


-- 
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] 100pah commented on issue #14839: The ‘borderWidth’ causes the pie chart to not be completely closed

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #14839:
URL: https://github.com/apache/echarts/issues/14839#issuecomment-830716638


   @MissThee Remove the data items that value is `0`, the gap will diappear.
   
   
   @Ovilia @pissang 
   
   In this case there is no gap.
   ```js
   data: [
           { name: 's:迈向基地', value: 3.8 }
   ]
   ```
   
   But in this case there is a gap.
   ```js
   data: [
           { name: 's':迈向基地', value: 3.8 },
           { name: 'd', value: 0 },
   ]
   ```
   
   Should it be an issue? I've no idea.
   
   


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