<!--
为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
-->


### One-line summary [问题简述]
华为手机上x轴设置了旋转角度后显示成了


![image](https://user-images.githubusercontent.com/15756901/45403888-39236680-b68f-11e8-915d-21905d236a26.png)





### Version & Environment [版本及环境]
+ ECharts version [ECharts 版本]:4.1.0
+ Browser version [浏览器类型和版本]:微信小程序
+ OS Version [操作系统类型和版本]:华为android系统具体版本不知





### Expected behaviour [期望结果]
期望x轴横排




### ECharts option [ECharts配置项]
<!-- Copy and paste your 'echarts option' here. -->
<!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
```javascript
option = {
   color: ['orange'],
      tooltip: {
        trigger: 'axis',
        axisPointer: {
          type: 'line',
          label: {
            show: true,
            formatter: function (p) {
              return p.value + " " + p.seriesData[0].value + "元";
            },
            margin: -280,
            backgroundColor: "#FFB947"
          },
          lineStyle: {
            color: "#FCC057"
          }
        }
      },
      grid: {
        top: '20rpx',
        left: '3%',
        right: '44rpx',
        bottom: '20rpx',
        containLabel: true
      },
      dataZoom: [
           
      ],
    
      xAxis: {
        type: 'category',
        data: 
['0:00-2:00','2:00-4:00','4:00-6:00','6:00-8:00','8:00-10:00','10:00-12:00','12:00-14:00','14:00-16:00','16:00-18:00','18:00:20:00','20:00:22:00','22:00:24:00'],
        axisLabel: {
          interval: 0,
          rotate: 45
        } 
      },
      yAxis: {
        type: 'value'
      },
      series: [{
        data: [2,8,10,5,7,8,9,34,4,5,6,7],
        type: 'line',
        markLine: {
          symbol: 'none',
          itemStyle: {
            normal: {
              color: '#1e90ff',
              label: {
                show: true,
                position:'end'
              }
            }
          },
          data: [{ type: 'average', name: '平均值' }]
        }
      }
      ],
}

```




### Other comments [其他信息]
<!-- For example: Screenshot or Online demo -->
<!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->



[ Full content available at: 
https://github.com/apache/incubator-echarts/issues/9053 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to