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 2020/04/14 07:23:44 UTC

[GitHub] [incubator-echarts] RomanOlegovich opened a new issue #12433: When used filterMode("filter") and dataZoom - adding data dynamically leaves lines.

RomanOlegovich opened a new issue #12433: When used filterMode("filter") and dataZoom - adding data dynamically leaves lines.
URL: https://github.com/apache/incubator-echarts/issues/12433
 
 
   ### Version
   4.7.0
   
   ### Steps to reproduce
   Zoom in and look on the left on the chart.
   
   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
           },
           filterMode:'filter'
       },
       yAxis: {
           type: 'value',
           boundaryGap: [0, '100%'],
           splitLine: {
               show: false
           }
       },
       dataZoom: [{type:'inside'}],
       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
           }]
       });
   }, 100);
   
   ### What is expected?
   Clean chart
   
   ### What is actually happening?
   Chart without incorrect lines
   
   <!-- 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12433: When used filterMode("filter") and dataZoom - adding data dynamically leaves lines.

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12433: When used filterMode("filter") and dataZoom - adding data dynamically leaves lines.
URL: https://github.com/apache/incubator-echarts/issues/12433#issuecomment-613271487
 
 
   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 **you have posted enough image to demo your request**. 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 questions.
   
   If you are interested in the project, you may also subscribe our [mail 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] yufeng04 commented on issue #12433: When used filterMode("filter") and dataZoom - adding data dynamically leaves lines.

Posted by GitBox <gi...@apache.org>.
yufeng04 commented on issue #12433: When used filterMode("filter") and dataZoom - adding data dynamically leaves lines.
URL: https://github.com/apache/incubator-echarts/issues/12433#issuecomment-613467530
 
 
   Could you provide a demo for the issue either with [https://jsfiddle.net/ovilia/n6xc4df3/](https://jsfiddle.net/ovilia/n6xc4df3/) or [https://gallery.echartsjs.com/editor.html](https://gallery.echartsjs.com/editor.html).

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [echarts] pissang closed issue #12433: When used dataZoom - adding data dynamically leaves lines.

Posted by GitBox <gi...@apache.org>.
pissang closed issue #12433:
URL: https://github.com/apache/echarts/issues/12433


   


-- 
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] RomanOlegovich commented on issue #12433: When used filterMode("filter") and dataZoom - adding data dynamically leaves lines.

Posted by GitBox <gi...@apache.org>.
RomanOlegovich commented on issue #12433: When used filterMode("filter") and dataZoom - adding data dynamically leaves lines.
URL: https://github.com/apache/incubator-echarts/issues/12433#issuecomment-613499341
 
 
   > Could you provide a demo for the issue either with https://jsfiddle.net/ovilia/n6xc4df3/ or https://gallery.echartsjs.com/editor.html.
   
   https://gallery.echartsjs.com/editor.html?c=xr7FKkQQbr&v=1

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] RomanOlegovich commented on issue #12433: When used dataZoom - adding data dynamically leaves lines.

Posted by GitBox <gi...@apache.org>.
RomanOlegovich commented on issue #12433:
URL: https://github.com/apache/incubator-echarts/issues/12433#issuecomment-635775954


   If set series-line  "animation:false" - problem resolved.


----------------------------------------------------------------
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:
users@infra.apache.org



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