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/11/26 04:13:30 UTC

[GitHub] [echarts] chinmaydey opened a new issue #16116: Zero sum pie chart

chinmaydey opened a new issue #16116:
URL: https://github.com/apache/echarts/issues/16116


   `###` What problem does this feature solve?
   I want to show the legends for series however all the them have value 0 hence it plots equally on pie chart.
   
   ### What does the proposed API look like?
   In the new feature the chart should not show the series if the value is zero. Instead it should continue to show the legend however for pie chart it should only show 1 circle.
   
   I am looking something like this. Check the legend has color.
   
   ![image](https://user-images.githubusercontent.com/39548443/143525772-0ae6b50a-0f0c-42bd-8125-b45534563bd6.png)
   
   I tried this workaround but legend has not color.
   
   `option = {
     tooltip: {
       trigger: 'item'
     },
     legend: {
       top: '5%',
       left: 'center',
       data:[ 'Search Engine','Direct'],
       selected: {'Search Engine':false,'Direct':false},
       selectedMode: false,
     },
     series: [
       {
         name: 'Access From',
         type: 'pie',
         radius: ['40%', '70%'],
         avoidLabelOverlap: false,
         label: {
           show: false,
           position: 'center'
         },
         emphasis: {
           label: {
             show: true,
             fontSize: '40',
             fontWeight: 'bold'
           }
         },
         labelLine: {
           show: false
         },
         data: [
           { value: 1048, name: 'Search Engine' },
           { value: 735, name: 'Direct' }
         ]
       }
     ]
   };`
   
   <!-- 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.

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] closed issue #16116: Zero sum pie chart

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #16116:
URL: https://github.com/apache/echarts/issues/16116


   


-- 
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 #16116: Zero sum pie chart

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


   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](https://echarts.apache.org/api.html) and [chart option](https://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 to our [mailing list](https://echarts.apache.org/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.

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