[英]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.