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/10/11 09:24:31 UTC

[GitHub] 100pah commented on issue #9181: xAxis.axisTick.interval设置为0、1、2无效,xAxis.axisLabel.interval设置有效

100pah commented on issue #9181: xAxis.axisTick.interval设置为0、1、2无效,xAxis.axisLabel.interval设置有效
URL: https://github.com/apache/incubator-echarts/issues/9181#issuecomment-428885255
 
 
   在 4.2.0 版本中测试。这样设置 axisTick.interval 是有效的。
   
   ```js
   var data = [];
   for (var i = 0; i < 100; i++) {
       data.push([
           i,
           Math.random()
       ]);
   }
   
   option = {
       tooltip: {
           trigger: 'axis',
       },
       xAxis: [{
           type: 'category',
           axisTick: {
               interval: 5
           }
       }],
       yAxis: {
       },
       series: [{
           type: 'line',
           data: data
       }]
   };
   ```
   
   

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