You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/07/04 09:53:08 UTC

[GitHub] [echarts] warryy opened a new issue #15288: line map messed when quickly druging zoom bar in Chrome in windows

warryy opened a new issue #15288:
URL: https://github.com/apache/echarts/issues/15288


   ### Version
   https://cdn.jsdelivr.net/npm/echarts@4/dist/echarts.min.js?_v_=1611323308745
   
   ### Reproduction link
   [https://echarts.apache.org/v4/examples/en/editor.html?c=dynamic-data2](https://echarts.apache.org/v4/examples/en/editor.html?c=dynamic-data2)
   
   ### Steps to reproduce
   copy code: 
   
   function randomData() {
       now = new Date( now   oneDay);
       value = value   Math.random() * 21 - 10;
       return {
           name: now.toString(),
           value: [
               [now.getFullYear(), now.getMonth()   1, now.getDate()].join('/'),
               Math.round(value)
           ]
       };
   }
   
   var data = [];
   var now =  new Date(1997, 9, 3);
   var oneDay = 24 * 3600 * 1000;
   var value = Math.random() * 1000;
   for (var i = 0; i < 1000; i  ) {
       data.push(randomData());
   }
   
   option = {
       title: {
           text: '动态数据   时间坐标轴'
       },
       tooltip: {
           trigger: 'axis',
           formatter: function (params) {
               params = params[0];
               var date = new Date(params.name);
               return date.getDate()   '/'   (date.getMonth()   1)   '/'   date.getFullYear()   ' : '   params.value[1];
           },
           axisPointer: {
               animation: false
           }
       },
       xAxis: {
           type: 'time',
           splitLine: {
               show: false
           }
       },
       yAxis: {
           type: 'value',
           boundaryGap: [0, '100%'],
           splitLine: {
               show: false
           }
       },
       series: [{
           name: '模拟数据',
           type: 'line',
           showSymbol: false,
           hoverAnimation: false,
           data: data
       }]
   };
   
   setInterval(function () {
   
       for (var i = 0; i < 5; i  ) {
           data.shift();
           data.push(randomData());
       }
   
       myChart.setOption({
           series: [{
               data: data
           }]
       });
   }, 1000);
   
   quickly drug zoom bar
   
   ### What is expected?
   display normally
   
   ### What is actually happening?
   line map messed
   
   ---
   Screenshot link: https://z3.ax1x.com/2021/07/04/RfkDHO.png
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


-- 
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-unsubscribe@echarts.apache.org

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



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


[GitHub] [echarts] hereisfahad commented on issue #15288: line map messed when quickly druging zoom bar in Chrome in windows

Posted by GitBox <gi...@apache.org>.
hereisfahad commented on issue #15288:
URL: https://github.com/apache/echarts/issues/15288#issuecomment-873558043


   Try setting the throttle to 0.
   `dataZoom: {
           show: true,
           throttle: 0
       }`


-- 
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-unsubscribe@echarts.apache.org

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



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


[GitHub] [echarts] echarts-bot[bot] commented on issue #15288: line map messed when quickly druging zoom bar in Chrome in windows

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15288:
URL: https://github.com/apache/echarts/issues/15288#issuecomment-873556833


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


-- 
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-unsubscribe@echarts.apache.org

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



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


[GitHub] [echarts] warryy commented on issue #15288: line map messed when quickly druging zoom bar in Chrome in windows

Posted by GitBox <gi...@apache.org>.
warryy commented on issue #15288:
URL: https://github.com/apache/echarts/issues/15288#issuecomment-876079485


   > Try setting the throttle to 0.
   > `dataZoom: { show: true, throttle: 0 }`
   
   not work = =


-- 
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-unsubscribe@echarts.apache.org

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



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


[GitHub] [echarts] pissang commented on issue #15288: line map messed when quickly druging zoom bar in Chrome in windows

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #15288:
URL: https://github.com/apache/echarts/issues/15288#issuecomment-876081882


   @warryy It should have been fixed in 5.0. You can try it again


-- 
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-unsubscribe@echarts.apache.org

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



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