You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/08/30 02:49:52 UTC

[GitHub] HuangWenJ opened a new issue #8976: 柱状图柱子存在偏移

HuangWenJ opened a new issue #8976: 柱状图柱子存在偏移
URL: https://github.com/apache/incubator-echarts/issues/8976
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   绘制柱状图时,设置x轴为非类目轴,并设定了xAxis.max,xAxis.min和xAxis.interval后绘出的柱状图貌似存在偏移,第一个柱子对应的x坐标为0,但是却不和0刻度线对齐,而是超过了y轴,详情可以运行option配置项得知(不知道为什么issue上传不了截图png文件)
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:4.1.0.rc2/echarts-en.common.js
   + Browser version [浏览器类型和版本]:Google Chrome Version 67.0.3396.99 (Official Build) (64-bit)
   + OS Version [操作系统类型和版本]:Ubuntu 18.04.1 LTS
   
   
   
   
   
   ### Expected behaviour [期望结果]
   第一个柱子的左边缘和y轴重合对齐,不要超过y轴
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
       legend:{
           data:["PassengerId"]
       },
       xAxis: {
           type: 'value',
             min:0,
             max:900,
             interval:25,
           
       },
       yAxis: {
   
       },
       series: [{
           boundaryGap:"1%",
           name:"PassengerId",
           data: [[0, 24],[22.5, 20],[45, 25],[67.5, 20],[90, 25],[112.5, 20],[135, 25],[157.5, 20],[180, 25],[202.5, 20],[225, 25],[247.5, 20],[270, 25],[292.5, 20],[315, 25],[337.5, 20],[360, 25],[382.5, 20],[405, 25],[427.5, 20],[450, 25],[472.5, 20],[495, 25],[517.5, 20],[540, 25],[562.5, 20],[585, 25],[607.5, 20],[630, 25],[652.5, 20],[675, 25],[697.5, 20],[720, 25],[742.5, 20],[765, 25],[787.5, 20], [810, 25],[832.5, 20],[855, 25],[877.5, 12],[900, 0]],
           type: 'bar'
       }]
   };
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   
   
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org