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 2019/10/08 13:32:20 UTC

[GitHub] [incubator-echarts] maliayas opened a new issue #11374: Bar width not calculated effectively for "value" type axis

maliayas opened a new issue #11374: Bar width not calculated effectively for "value" type axis
URL: https://github.com/apache/incubator-echarts/issues/11374
 
 
   ### Version
   4.3.0
   
   ### Reproduction link
   [https://jsfiddle.net/1wvhf4x2/2/](https://jsfiddle.net/1wvhf4x2/2/)
   
   ### Steps to reproduce
   Use "value" as x axis type and have big gaps in x axis values in the data. Example setup to reproduce:
   
   ```js
   option = {
       "xAxis": {
           "show": true,
           "type": "value",
           "scale": true,
       },
       "yAxis": {
           "show": true,
       },
       "series": [{
           "type": "bar",
           "data": [
               ["2019", "600"],
               ["2020", "600"],
               ["2032", "600"],
           ]
       }]
   };
   ```
   
   ### What is expected?
   Bars should not be too wide and they must not overlap.
   
   ### What is actually happening?
   Bars are too wide and they overlap.
   
   ---
   This issue does not occur for "time" and "cateogry" axis types. In the above example, just change "value" to "category" and in the result, bar width is nicely adjusted. See https://jsfiddle.net/1wvhf4x2/3/
   
   <!-- 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