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 2022/12/07 04:18:34 UTC

[GitHub] [echarts] xiaomeinvG opened a new issue, #18030: [series-pie. minAngle ] When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

xiaomeinvG opened a new issue, #18030:
URL: https://github.com/apache/echarts/issues/18030

   ### What problem does this feature solve?
   
   `option = {
     legend: {
       orient: "vertical",
       left: "left",
       data: ["Apple", "Grapes", "Pineapples", "Oranges", "Bananas"]
     },
     tooltip: {
             trigger: 'item'
           },
     series: [{
       type: "pie",
       minAngle:30,
       radius:['70%', '96%'],
       itemStyle: {
         borderRadius: 0,
         borderColor: '#fff',
         borderWidth: 2
       },
       labelLine: {
         show: false
       },
       label: {
         show: false,
         
       },
       data: [{
         value: 3,
         name: "Apple"
       }, {
         value: 310,
         name: "Grapes"
       }, {
         value: 0,
         name: "Pineapples"
       }, {
         value: 135,
         name: "Oranges"
       }, {
         value: 10000,
         name: "Bananas"
       }]
     }]
   }` 
   <img width="827" alt="image" src="https://user-images.githubusercontent.com/40682393/206086737-64312b3a-3f66-45d7-8dff-653154a3a995.png">
    I hope that the fan area with 0 is not displayed
   
   ### What does the proposed API look like?
   
   I hope you can provide a switch in the ”series“ to decide whether to display the area of ​​0, which can be displayed by default


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

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] xiaomeinvG commented on issue #18030: [Feature ] minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

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

   According to your suggestion, I got the solution, thank you very much


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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] xiaomeinvG commented on issue #18030: [Feature ] minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

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

   But my project requires the default value to display 0, so I can't use "-"


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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 #18030: [Feature ] minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

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

   @xiaomeinvG Where's your demo?


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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] xiaomeinvG commented on issue #18030: [Feature ] minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

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

   <img width="574" alt="image" src="https://user-images.githubusercontent.com/40682393/206146916-9e03491b-b429-4edf-8244-7244110ff050.png">
   I mean in my project, 'legend' needs to be as shown in the picture, so I can't use '-', but I want to not show the fan area with 0 data
   @Ovilia 


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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] plainheart commented on issue #18030: [Feature ] minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

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

   After you do as @Ovilia suggested, the items with the value `0` will be invisible, so I think it's okay to use `'-'`.


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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 #18030: [Feature ] minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

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

   @xiaomeinvG Not sure what do you mean. Maybe you can provide a demo image.


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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 #18030: [Feature ] minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

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

   @xiaomeinvG Try this
   
   > You should replace zero data with `'-'`.
   
   


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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] xiaomeinvG commented on issue #18030: [Feature ] minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

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

   
   Do items with a value of "0" refer to rounded decimals? I remember that users can define the number of decimal places by themselves, can this solve the situation you mentioned?


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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 #18030: [Feature ] minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

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

   You should replace zero data with `'-'`.


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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 #18030: [Feature ] minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

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

   @xiaomeinvG Please provide a demo for the issue either with [Official Editor](https://echarts.apache.org/examples/editor.html), [CodePen](https://codepen.io/Ovilia/pen/dyYWXWM), [CodeSandbox](https://codesandbox.io/s/echarts-basic-example-template-mpfz1s) or [JSFiddle](https://jsfiddle.net/plainheart/e46ozpqj/7/).


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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] xiaomeinvG commented on issue #18030: [Feature ] minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

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

   @Ovilia  I am sorry i can't, You know, by request, I have to show 0


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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] xiaomeinvG closed issue #18030: [Feature ] minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0

Posted by GitBox <gi...@apache.org>.
xiaomeinvG closed issue #18030: [Feature ]  minAngle When minAngle is set, it is hoped that the corresponding fan-shaped area will not be displayed when the data is 0
URL: https://github.com/apache/echarts/issues/18030


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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