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/07/27 09:23:09 UTC

[GitHub] lusase opened a new issue #8770: 图表宽度调整后 label自适应消失 再变回原来宽度消失的label无法还原 在4.1.0可以复现 3.8.0 没有

lusase opened a new issue #8770: 图表宽度调整后 label自适应消失 再变回原来宽度消失的label无法还原 在4.1.0可以复现 3.8.0 没有
URL: https://github.com/apache/incubator-echarts/issues/8770
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   图表宽度调整后 label文字消失 再变回原来宽度消失的label无法还原
   该问题只在当前的4.1.0上有复现
   在3.8.0上没问题
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: 4.1.0
   + Browser version [浏览器类型和版本]: Chrome/67
   + OS Version [操作系统类型和版本]: win10
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
       backgroundColor: '#00265f',
       grid: {
           left: '3%',
           right: '4%',
           bottom: '3%',
           containLabel: true
       },
       xAxis: [{
           type: 'category',
           data: ['喀什市',
               '疏附县',
               '疏勒县',
               '英吉沙县',
               '泽普县',
               '岳普湖县',
               '巴楚县',
               '伽师县',
               '叶城县',
               '莎车县 ',
           ],
           axisLine: {
               show: true,
               lineStyle: {
                   color: "#063374",
                   width: 1,
                   type: "solid"
               }
           },
           axisTick: {
               show: false
           },
           axisLabel: {
               show: true,
               textStyle: {
                   color: "#00c7ff",
               }
           },
       }],
       yAxis: [{
           type: 'value',
           axisLabel: {
               formatter: '{value} %'
           },
           axisLine: {
               show: false,
               lineStyle: {
                   color: "#00c7ff",
                   width: 1,
                   type: "solid"
               },
           },
           axisTick: {
               show: false
           },
           splitLine: {
               lineStyle: {
                   color: "#063374",
               }
           }
       }],
       series: [{
           type: 'bar',
           data: [20, 50, 80, 58, 83, 68, 57, 80, 42, 66],
           //barWidth: 50, //柱子宽度
           //barGap: 1, //柱子之间间距
           itemStyle: {
               normal: {
                   color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                       offset: 0,
                       color: '#00fcae'
                   }, {
                       offset: 1,
                       color: '#006388'
                   }]),
                   opacity: 1,
               }
           }
       }]
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   
   [有问题的 版本号为4.1.0](http://gallery.echartsjs.com/editor.html?c=xSkaeLv-Az)
   [没问题的 版本号为3.8.0](http://gallery.echartsjs.com/editor.html?c=xHJ5UWA7Ke)

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