fangming666 opened a new issue #10109: 
在微信小程序里面使用了dataZoom做滚动条,但是右边数据却出现了缺失空白,初始化的时候可以
URL: https://github.com/apache/incubator-echarts/issues/10109
 
 
   ### Version
   4.1.0-rc.2
   
   ### Steps to reproduce
   import * as echarts from '../../ec-canvas/echarts';
   
   const app = getApp();
   
   function initChart(canvas, width, height) {
     const chart = echarts.init(canvas, null, {
       width: width,
       height: height
     });
     canvas.setChart(chart);
   
     var option = {
       xAxis: {
         type: 'category',
          boundaryGap: false,
         data: [1, 2, 3, 4, 5, 6,7],
         axisLine: {
           lineStyle: {
             color: '#58afed', // X轴及其文字颜色
           }
         }
       },
       yAxis: {
         type: 'value',
         axisLine: {
           lineStyle: {
             color: '#58afed', // y轴及其文字颜色
           }
         }
       },
       series: [{
         data: [820, 932, 901, 934, 1290, 1330, 1320],
         type: 'line'
       }],
       dataZoom: [{ //添加X轴滚动条
         type: 'slider',
         show: true,
         left: 35,
         start: 0,
         end: 66,
         handleSize: 8
       }]
     };
   
     chart.setOption(option);
     return chart;
   }
   
   Page({
     data: {
       ec: {
         onInit: initChart
       }
     },
   });
   
   ### What is expected?
   拖动滚动条的时候数据不会缺失
   
   ### What is actually happening?
   拖动滚动条数据进行了缺失
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   
   
![image](https://user-images.githubusercontent.com/27843052/54414495-4d2a4c80-4734-11e9-93d7-8dd855b35c40.png)
   
![image](https://user-images.githubusercontent.com/27843052/54414519-63d0a380-4734-11e9-8a7d-8a8cc512b089.png)
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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