chenzhiw opened a new issue #9333: zoomData问题
URL: https://github.com/apache/incubator-echarts/issues/9333
 
 
   ### One-line summary [问题简述]
   
   1. 
怎么才能把toolbox上的zoomData设置成默认激活状态,不管toolbox上的zoomData按钮显不显示,图片加载完成之后,直接就可以用鼠标进行选框缩放,而不需要再点zoomData按钮
   
   2. 折线在缩放之后会用目前的点重新画线,如果有点超出了缩放区域的范围,点就会被忽略,连线也会跳过这个点,clipOverflow: false 
也没有效果
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:4.2.0rc2
   + Browser version [浏览器类型和版本]:chrome v66
   + OS Version [操作系统类型和版本]:win7 x64
   
   
   ### Expected behaviour [期望结果]
   
   1. 可以有配置项配置自动激活缩放选项
   
   2. 可以有选项配置超出缩放范围的点不会忽略掉
   
   
   
   ### ECharts option [ECharts配置项]
   <pre>
   option = {
       xAxis: {
           type: 'category',
           data: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 
38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 
58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 
78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 
98, 99]
       },
       yAxis: {
           type: 'value'
       },
       toolbox: {
           feature: {
               dataZoom: {
                   show: true
               },
               restore: {},
               saveAsImage: {}
           }
       },
       series: [{
           data:[115, 154, 97, 181, 167, 60, 106, 149, 121, 184, 142, 146, 177, 
195, 198, 172, 144, 111, 55, 56, 6, 155, 54, 175, 152, 78, 148, 36, 114, 7, 
130, 69, 110, 15, 178, 145, 128, 20, 63, 74, 95, 92, 104, 48, 31, 125, 160, 
173, 109, 170, 49, 71, 37, 129, 50, 58, 59, 13, 10, 51, 47, 133, 102, 27, 17, 
113, 70, 83, 32, 139, 65, 137, 16, 166, 176, 25, 40, 14, 194, 90, 116, 141, 3, 
138, 68, 62, 169, 179, 42, 174, 126, 93, 183, 18, 66, 143, 86, 0, 98, 199],
           type: 'line',
           smooth: true,
           clipOverflow: false,
           label : {
               show: true,
               formatter:'({b}, {c})'
           },
       }],
       dataZoom: [
           {
               type: 'inside',
               realtime: true,
               xAxisIndex: [0],
           },
           {
               type: 'inside',
               realtime: true,
               yAxisIndex: [0]
           },
       ],
   };
   </pre>
   
   
   
   
   ### Other comments [其他信息]
   
![echarts](https://user-images.githubusercontent.com/32631622/47973601-4df50700-e0e0-11e8-92ca-f214c9362597.png)
   可以看出42直接连到了48,中间的点都没了
   
   plotly放大效果
   
![plotly](https://user-images.githubusercontent.com/32631622/47973692-c22faa80-e0e0-11e8-842a-f40a7cc3f9b7.png)
   
   
   

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