VakerNie opened a new issue #8455: 当热力图中的xAxis的boundaryGap为false时,图层左移覆盖Y轴刻度及标签
URL: https://github.com/apache/incubator-echarts/issues/8455
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   
当在热力图中xAxis为类目类,修改xAxis的boundaryGap为false时(PS:在网站的实例中,修改代码就可以实现),显示图层会左移半格的距离,超出X坐标,并覆盖Y轴(不知道是不是BUG,如果不是请大佬指正出我的错误,谢谢)
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:4.0
   + Browser version [浏览器类型和版本]:Chrome 64.0.3282.119
   + OS Version [操作系统类型和版本]:Windows7
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
   刻度标签对其,显示图层并未超出
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
      tooltip: {
           position: 'top'
       },
       animation: false,
       grid: {
           height: '50%',
           y: '10%'
       },
       xAxis: {
           
           type: 'category',
           data: hours,
           boundaryGap:false,
           splitArea: {
               show: true
           }
       },
       yAxis: {
           type: 'category',
           data: days,
           splitArea: {
               show: true
           }
       },
       visualMap: {
           min: 0,
           max: 10,
           calculable: true,
           orient: 'horizontal',
           left: 'center',
           bottom: '15%'
       },
       series: [{
           name: 'Punch Card',
           type: 'heatmap',
           data: data,
           label: {
               normal: {
                   show: true
               }
           },
           itemStyle: {
               emphasis: {
                   shadowBlur: 10,
                   shadowColor: 'rgba(0, 0, 0, 0.5)'
               }
           }
       }]
   }
   
   ```
   
   
   
   
   ### 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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to