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/29 12:45:26 UTC

[GitHub] [echarts] hulu7 opened a new issue #16136: Pie chart does not show area with data

hulu7 opened a new issue #16136:
URL: https://github.com/apache/echarts/issues/16136


   ### Version
   
   5.2.2
   
   ### Link to minimal reproduction
   
   https://jsfiddle.net/hulu7/yjb9e2g0/5/
   
   ### Steps To Reproduce
   
   1. Download echarts [example](https://echarts.apache.org/examples/en/editor.html?c=pie-alignTo) to local, then modify the data like [this](https://jsfiddle.net/hulu7/yjb9e2g0/5/).
   ```javascript
   data1 = [
     {
       name: 'Apples',
       value: 70
     },
     {
       name: 'Strawberries',
       value: 68
     },
     {
       name: 'Bananas',
       value: 48
     },
     {
       name: 'Oranges',
       value: 40
     }
   ]
   
   data2 = [
     {
       name: 'Apple2',
       value: 34
     }
   ]
   ```
   2. Run the html on local browser or on [JSFiddle](https://jsfiddle.net/hulu7/yjb9e2g0/5/). 
   3. Here we go, we get an empty chart on the right.
   
   Notice: Run it on local or on [JSFiddle](https://jsfiddle.net/hulu7/yjb9e2g0/5/)
   
   ### Current Behavior
   
   [JSFiddle](https://jsfiddle.net/hulu7/yjb9e2g0/5/): There are datas for both pies, but one of them is blank.
   
   ### Expected Behavior
   
   Both of them should work properly with color.
   
   ### Environment
   
   ```markdown
   - OS: MacOS 10.15.7
   - Browser: Chrome 96.0.4664.55
   - Framework: No
   ```
   
   
   ### Any additional comments?
   
   More finddings.
   1. With following data2, you can get half pie.
   ```javascript
   data2 = [
     {
       name: 'Apple2',
       value: 34
     },
     {
       name: 'Apple3',
       value: 34
     }
   ]
   ```
   2. With another data2, you can get entire pie.
   ```javascript
   data2 = [
     {
       name: 'Apple2',
       value: 34
     },
     {
       name: 'Apple3',
       value: 34
     },
     {
       name: 'Apple4',
       value: 34
     }
   ]
   ```
   3. If data2's name exists in data1, you can also get entire pie.
   ```javascript
   data2 = [
     {
       name: 'Apple',
       value: 34
     }
   ]
   ```


-- 
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 #16136: Pie chart does not show area with data

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


   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


[GitHub] [echarts] echarts-bot[bot] removed a comment on issue #16136: Pie chart does not show area with data

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] removed a comment on issue #16136:
URL: https://github.com/apache/echarts/issues/16136#issuecomment-981600894


   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


[GitHub] [echarts] pissang edited a comment on issue #16136: Pie chart does not show color with 'light' theme

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


   Seems to be a bug of multi-level color palette in the light theme. You can set color palette manually instead of using light theme.
   ```ts
   setOption({
     color: ['#37A2DA', '#32C5E9', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#e7bcf3', '#8378EA', '#96BFFF']
   });
   ```


-- 
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] pissang commented on issue #16136: Pie chart does not show color with 'light' theme

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


   Seems to be a bug of multi-level color palette in the light theme. You can set color palette manually instead of using light theme.
   
   setOption({
     color: ['#37A2DA', '#32C5E9', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#e7bcf3', '#8378EA', '#96BFFF']
   });


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