buildgod opened a new issue #9154: X轴上的分割线splitLine属性interval  formatter函数控制显示错误
URL: https://github.com/apache/incubator-echarts/issues/9154
 
 
   ### One-line summary [问题简述]
   
   直角坐标系下的X轴上的分割线splitLine属性interval使用formatter函数进行控制分割线显示不正确。
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: ECharts 4.10
   + Browser version [浏览器类型和版本]:  chrome 版本 69.0.3497.100(正式版本) (32 位)
   + OS Version [操作系统类型和版本]: window 7
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
通过splitLine的进行上下双X轴的分组显示,如上X轴可以作为类目分组(如:地区),下X轴作为具体类目(如:省份),通过splitLine进行严格的分割线隔离。
   预期分割线的formatter函数能够严格控制分割线的显示
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
       xAxis: {
           type: 'category',
           splitLine:{
               show:true,
               // interval: 3
               interval: function(params, name){
                    debugger;
                   if(params == 0 || params == 6){
                       return true;
                   }
                   return false;
               }
           },
            axisTick:{
               show:true,
               interval: function(params, name){
                  
                   if(params == 4 || params == 5){
                       return true;
                   }
                   return false;
               }
           },
           data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
       },
       yAxis: {
           type: 'value'
       },
       series: [{
           data: [120, 200, 150, 80, 70, 110, 130],
           type: 'bar'
       }]
   };
   
   
   ```
   ### Other comments [其他信息]

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