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/05/15 02:03:43 UTC

[GitHub] iamziyue opened a new issue #8336: 堆叠柱状图在设置y轴scale属性的情况下超出范围

iamziyue opened a new issue #8336: 堆叠柱状图在设置y轴scale属性的情况下超出范围
URL: https://github.com/apache/incubator-echarts/issues/8336
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   当设置value轴的scale: true时,柱状图底部超过水平的x轴。当不设置scale属性时正常。有问题的堆叠图切换为平铺图形后,正常。
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: v4.1.0.rc2
   + Browser version [浏览器类型和版本]: QQ浏览器10.0.1,Chrome内核
   + OS Version [操作系统类型和版本]: Win10
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
     dataset: {
       source: {
         '脱落': ['战胜焦虑', '走出抑郁', '远离失眠', '直面强迫'],
         '第1次': [11, 12, 5, 6],
         '第2次': [6, 2, 0, 0],
         '第3次': [8, 6, 2, 0],
         '第4次': [2, 2, 1, 1],
         '第5次': [1, 0, 0, 0],
         '第6次': [1, 0, 0, 1]
       }
     },
     grid: {
       left: 0,
       right: 10,
       containLabel: true
     },
     tooltip: {
       trigger: 'axis',
       axisPointer: { type: 'shadow' }
     },
     toolbox: {
       feature: {
         magicType: { type: ['tiled'] },
         restore: {}
       }
     },
     legend: {},
     xAxis: {
       type: 'category',
     },
     yAxis: {
       type: 'value',
       scale: true
     },
     series: [{
       type: 'bar',
       stack: '总量'
     }, {
       type: 'bar',
       stack: '总量'
     }, {
       type: 'bar',
       stack: '总量'
     }, {
       type: 'bar',
       stack: '总量'
     }, {
       type: 'bar',
       stack: '总量'
     }, {
       type: 'bar',
       stack: '总量'
     }]
   }
   
   ```
   
   

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