简体   繁体   English

由于数据量大,我应该如何处理浏览器冻结?

[英]How should I handle the browser freezing due to a large amount of data?

I have created a web page where data can be loaded into a google chart for displaying it visually. 我创建了一个网页,可在其中将数据加载到Google图表中以直观显示。 Everything works well when the data set is small, but as soon as it approaches 10,000 points or more, the browser starts to freeze. 当数据集较小时,一切都运行良好,但是一旦达到10,000点或更高,浏览器就会开始冻结。

Is there any way to stop the freezing other than lowering the amount of data displayed or cutting it off after a certain limit is reached? 除了降低显示的数据量或在达到一定限制后将其切断,是否有其他方法可以停止冻结?

Can you scale the data before being worked with? 您可以在使用之前缩放数据吗?

For example, if you have 5-10k visitors each day and you want to have chart that shows growth of visits in month, divide all numbers with 1000 and than process them. 例如,如果您每天有5-10k的访问者,并且您希望有一个图表显示每月访问量的增长,则将所有数字除以1000,然后对其进行处理。 Than write below (or where ever) that scale is x1000. 比在下面(或任何地方)写下该比例为x1000。

I'm guessing is not as simple as this, but believe that can be done on these principles. 我想这不是那么简单,但相信可以根据这些原则来完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Web浏览器中处理大数据集? - How to handle large data set in web browser? 如何在Angular 4上的浏览器本地存储中处理大量数据? - How to handle large amount of data in browsers local storage on Angular 4? 如何在没有浏览器崩溃的情况下将大量的json数据导出到CSV? - how to export large amount of json data to CSV without browser crash? 如何在JavaScript库中处理大量HTML - How to handle large amount of HTML in a javascript library 如何处理使用 JQuery 在页面下方的长列表中显示的大量用户评论? - How do I handle a large amount of user comments being displayed in a long list down a page using JQuery? 在node.js和express中,客户端应如何向服务器发送多达3k的大量数据? - In node.js and express, how should a client send a large, up to 3k, amount of data to the server? 如何使用node.js服务器处理大量负载? - How to handle large amount of load with node.js server? 如何优化大量静态数据的负载 - How to optimize load of large amount of static data 如何在javascript中存储大量数据 - how to store large amount of data in javascript 如何处理服务器端模拟的大型数据集 - >客户端浏览器 - How to handle large data sets for server-side simulation --> client browser
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM