You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "shukeLiang (via GitHub)" <gi...@apache.org> on 2024/09/26 12:03:44 UTC

[I] [Bug] 高频率更新echarts中的数据时,无法使用brush来框选 [echarts]

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

   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=area-time-axis
   
   ### Steps to Reproduce
   
   var dom = document.getElementById('chart-container');
   var myChart = echarts.init(dom, null, {
   renderer: 'canvas',
   useDirtyRect: false
   });
   var app = {};
   
   var option;
   
   let base = +new Date(1988, 9, 3);
   let oneDay = 24 * 3600 * 1000;
   let data = [[base, Math.random() * 300]];
   for (let i = 1; i < 20000; i++) {
   let now = new Date((base += oneDay));
   data.push([+now, Math.round((Math.random() - 0.5) * 20 + data[i - 1][1])]);
   }
   setInterval(() => {
   data[data.length - 1][1] = Math.round((Math.random() - 0.5) * 20 + data[19999][1]);
   option = {
   tooltip: {
   trigger: 'axis',
   position: function (pt) {
   return [pt[0], '10%'];
   }
   },
   title: {
   left: 'center',
   text: 'Large Ara Chart'
   },
   toolbox: {
   feature: {
   dataZoom: {
   yAxisIndex: 'none'
   },
   restore: {},
   saveAsImage: {}
   }
   },
   xAxis: {
   type: 'time',
   boundaryGap: false
   },
   yAxis: {
   type: 'value',
   boundaryGap: [0, '100%']
   },
   dataZoom: [
   {
   type: 'inside',
   },
   {
   start: 0,
   end: 20
   }
   ],
   series: [
   {
   name: 'Fake Data',
   type: 'line',
   smooth: true,
   symbol: 'none',
   areaStyle: {},
   data: data
   }
   ]
   };
   
   if (option && typeof option === 'object') {
   myChart.setOption(option);
   }
   }, 200)
   
   window.addEventListener('resize', myChart.resize);
   
   ### Current Behavior
   
   数据快速刷新, 无法进行刷选放大
   
   ### Expected Behavior
   
   数据快速刷新, 能够正常刷选放大
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   跟之前这个是同一个问题,请帮忙看看
   [https://github.com/apache/echarts/issues/10859](url)


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


Re: [I] [Bug] 高频率更新echarts中的数据时,无法使用brush来框选 [echarts]

Posted by "shukeLiang (via GitHub)" <gi...@apache.org>.
shukeLiang commented on issue #20377:
URL: https://github.com/apache/echarts/issues/20377#issuecomment-2378719761

   > > Data refreshes quickly, and zooming in and out is not possible
   > 
   > It is possible to brush zoom in and out - [Demo](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=DYUwLgBARghgziCBeCBqAdiA7hAIjMEACgEYBOADgoBoIzaBmASgG4AoUSAe03wE9kEAEwAWCACoIDAGwAGWRIgl5s9pwgATAjEEBtXbAS0AsgQAWAOgBOMdBq4BbIk0UN5AXXfsAZlysQidQBLQRIWCBCAHmEVVQjUVBcAbzYICHV0LhwUTBx8QiIiQ0RUFB4QfiZWVM1tCwAHAFc4MyJdDCyTc2suRrtC0zBLGztHZwgAWghZCwBWF0khBVRasBhdEKmSd11tpndqgF82Ni56sCCeQRS0sC4uYAv6gC4IG7SIMCsggHMfkCsrwA5DAAB5BOBA6g1NL1LhwIIXHivbx9ADGSPQAXOyRhHys4EaVixunOulk7loQOUAFIgV48cc0odobdEaBXu80qBvGBgWiQOhCFYoXjCKC-RAgQAZGBWf4QACCNggAGEzHKwECaiyancHlAuKDOXjvCACESQCaPh8tGsAFr3BzWm0fPiK8FwACSdhAxqlmUw2tdEF1IYJcDuBM5YddcBgADcQIrvQ4YP8Y4ydayIKCPRCXbc-PUrVKLg4QKKbYa-lorHwAOIwF4QbwwYAIbM1d2ewufYuloEJ9uNSs5tI1uxyxvN17kqnKWR09xdtJ2mCOxxzvEAeh3SRDYAHwKC6ARGkrNtjaQPkc1r0otEFGleyhIoZqlJqCG-IDg25tLkPnQGAK2BAAxGAAGtEHyGAq1dI8S2BYBTzHPE0jgBx7iGV4vlHccPjgPgHENYBgUDdCQzlc0AGUjw5N5r1tbQszSFdDnYNgEDAH1hWHYBChcJAAD43hqYB4EgFB110dcLFAdAfiGSYlAZNcNEEXI8AIYhAik8l3DQMpeBgPgqnYNc6iaF
 o2lQDQNFoSTI12IyViIQZhlsewnBcKYZnmRQlgOSzVhgCwWiCXlnHCCA900EBgCUSMagcPh1U1CLwAAeXOS50CIJIfyCP9nl0JJ10OdxDiOWgllkVggA). Clicking the brush-zoom toolbar button however is challenging due to the fast refresh. What is not possible is to see the newly arriving data in the zoomed window. Brushed zoom window shows just a snapshot of the data, yet new data keeps coming on the right side. Also wondering - what would justify taking zoom snapshots of fast moving data (!?)
   
   Because our application scenario is to display real-time data, new data is constantly refreshed and added to the canvas, but we need to partially zoom in and analyze the data of the past few minutes ago.


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


Re: [I] [Bug] 高频率更新echarts中的数据时,无法使用brush来框选 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20377:
URL: https://github.com/apache/echarts/issues/20377#issuecomment-5984543130

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


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


Re: [I] [Bug] 高频率更新echarts中的数据时,无法使用brush来框选 [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20377:
URL: https://github.com/apache/echarts/issues/20377#issuecomment-2377488654

   > Data refreshes quickly, and zooming in and out is not possible
   
   It is possible to brush zoom in and out - [Demo](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=DYUwLgBARghgziCBeCBqAdiA7hAIjMEACgEYBOADgoBoIzaBmASgG4AoUSAe03wE9kEAEwAWCACoIDAGwAGWRIgl5s9pwgATAjEEBtXbAS0AsgQAWAOgBOMdBq4BbIk0UN5AXXfsAZlysQidQBLQRIWCBCAHmEVVQjUVBcAbzYICHV0LhwUTBx8QiIiQ0RUFB4QfiZWVM1tCwAHAFc4MyJdDCyTc2suRrtC0zBLGztHZwgAWghZCwBWF0khBVRasBhdEKmSd11tpndqgF82Ni56sCCeQRS0sC4uYAv6gC4IG7SIMCsggHMfkCsrwA5DAAB5BOBA6g1NL1LhwIIXHivbx9ADGSPQAXOyRhHys4EaVixunOulk7loQOUAFIgV48cc0odobdEaBXu80qBvGBgWiQOhCFYoXjCKC-RAgQAZGBWf4QACCNggAGEzHKwECaiyancHlAuKDOXjvCACESQCaPh8tGsAFr3BzWm0fPiK8FwACSdhAxqlmUw2tdEF1IYJcDuBM5YddcBgADcQIrvQ4YP8Y4ydayIKCPRCXbc-PUrVKLg4QKKbYa-lorHwAOIwF4QbwwYAIbM1d2ewufYuloEJ9uNSs5tI1uxyxvN17kqnKWR09xdtJ2mCOxxzvEAeh3SRDYAHwKC6ARGkrNtjaQPkc1r0otEFGleyhIoZqlJqCG-IDg25tLkPnQGAK2BAAxGAAGtEHyGAq1dI8S2BYBTzHPE0jgBx7iGV4vlHccPjgPgHENYBgUDdCQzlc0AGUjw5N5r1tbQszSFdDnYNgEDAH1hWHYBChcJAAD43hqYB4EgFB110dcLFAdAfiGSYlAZNcNEEXI8AIYhAik8l3DQMpeBgPgqnYNc6iaFo2
 lQDQNFoSTI12IyViIQZhlsewnBcKYZnmRQlgOSzVhgCwWiCXlnHCCA900EBgCUSMagcPh1U1CLwAAeXOS50CIJIfyCP9nl0JJ10OdxDiOWgllkVggA).  
    Clicking the brush-zoom toolbar button however is challenging due to the fast refresh.
   What is not possible is to see the newly arriving data in the zoomed window. Brushed zoom window shows just a snapshot of the data, yet new data keeps coming on the right side.
   Also wondering - what would justify taking zoom snapshots of fast moving data (!?)


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


Re: [I] [Bug] 高频率更新echarts中的数据时,无法使用brush来框选 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20377:
URL: https://github.com/apache/echarts/issues/20377#issuecomment-5859866187

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


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


Re: [I] [Bug] 高频率更新echarts中的数据时,无法使用brush来框选 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #20377: [Bug] 高频率更新echarts中的数据时,无法使用brush来框选
URL: https://github.com/apache/echarts/issues/20377


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