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 2020/04/01 04:33:36 UTC

[GitHub] [incubator-echarts] liyuanqiu opened a new issue #12362: Wrong max value in Y axis when using stack bar series

liyuanqiu opened a new issue #12362: Wrong max value in Y axis when using stack bar series
URL: https://github.com/apache/incubator-echarts/issues/12362
 
 
   ### Version
   4.7.0
   
   ### Reproduction link
   [https://jsfiddle.net/9vskh3e4/](https://jsfiddle.net/9vskh3e4/)
   
   ### Steps to reproduce
   ```javascript
   option = {
       xAxis: {
           type: 'time',
       },
       yAxis: {
           type: 'value'
       },
       series: [{
           data: [[0, 100], [1000, 200]],
           type: 'bar',
           stack: 'stack',
       }, {
           data: [[1000, 150]],
           type: 'bar',
           stack: 'stack',
       }]
   };
   ```
   
   ### What is expected?
   When the data indexes are not aligned with data timestamps, for example:
   
   - [[0, 100], [1000, 200]]
   - [[1000, 150]]
   
   `echarts` will calculate a wrong max value.
   
   In this situation, `max = 200 + 150 = 350` is expected, but actully get `100 + 150 = 250`.
   
   By the result, I guess that `echarts` calculates the `max` value by the same index, not by the same dimension.
   
   I think the `max` should be the sum of the data with same dimension, not the same index.
   
   ### What is actually happening?
   Described in `What is expected?`
   
   <!-- 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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] 100pah commented on issue #12362: Wrong max value in Y axis when using stack bar series

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #12362: Wrong max value in Y axis when using stack bar series
URL: https://github.com/apache/incubator-echarts/issues/12362#issuecomment-608079401
 
 
   Related issue: #11879

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12362: Wrong max value in Y axis when using stack bar series

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12362: Wrong max value in Y axis when using stack bar series
URL: https://github.com/apache/incubator-echarts/issues/12362#issuecomment-607025641
 
 
   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 **you have posted enough image to demo your request**. 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 questions.
   
   If you are interested in the project, you may also subscribe our [mail 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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org