WXL570CN opened a new issue, #17603:
URL: https://github.com/apache/echarts/issues/17603

   ### Version
   
   5.3.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   ```
   const list = []
   const option = () => {
       let chartData = [];
       let xTimeData = [];
       if (list) {
         chartData = list.map((item) => item.sumFuelConsume);
         xTimeData = list.map((item) => dateFormat(item.createTime, 
formatString[frame]));
       }
       return {
         tooltip: {
           trigger: 'axis',
           axisPointer: {
             type: 'line',
             label: {
               backgroundColor: '#6a7985',
             },
           },
           valueFormatter: (value) => `${noText(value)}t`
         },
   
         grid: {
           left: '3%',
           top: '15%',
           right: '2%',
           bottom: '0%',
           containLabel: true,
         },
         xAxis: [
           {
             type: 'category',
             data: xTimeData,
             axisTick: {
               show: false
             },
             axisLine: {
               lineStyle: {
                 color: '#00CFFF'
               }
             },
             axisLabel: {
               color: '#666',
               fontSize: 11
             }
           },
         ],
         yAxis: [
           {
             type: 'value',
             axisLabel: { formatter: '{value}' },
             name: '单位:t',
             nameTextStyle: {
               fontSize: 11,
               fontWeight: 100,
               color: '#666',
             },
             splitLine: {
               //分割线配置
               show: true,
               lineStyle: {
                 color: 'rgba(0,225,255,0.2)',
               },
             },
           },
         ],
         dataZoom: {
           type: 'inside',
           xAxisIndex: [0],
         },
         series: [
           {
             name: '耗油量',
             type: 'line',
             stack: '总量',
             itemStyle: {
               normal: {
                 lineStyle: {
                   width: 2,
                   type: 'solid',
                   color: '#c7ac3e', //折线的颜色
                 },
               },
             }, //线条样式
             symbolSize: 4, //折线点的大小
             zlevel: 1,
             data: chartData,
           },
         ],
       };
     };
   ```
   
   ### Current Behavior
   
   线状图设置dataZoom进行缩放,鼠标滑动缩放后会自动回弹
   
   ### Expected Behavior
   
   线状图设置dataZoom进行缩放,鼠标滑动缩放后不应该自动回弹
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


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

To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to