在更新图表时不会导致内存泄漏的图表库 [英] Charting library that does not cause memory leak when updating chart

查看:144
本文介绍了在更新图表时不会导致内存泄漏的图表库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想根据使用AJAX异步地从服务器获取的数据,使用交互式刷新图表来构建页面。我真的很喜欢 jqPlot ,但是当尝试定期更新图表时(通过调用 replot(),没有页面刷新),它会导致巨大的浏览器内存泄漏。这似乎是在所有主要浏览器上出现的一个众所周知的问题。

I want to build a page with interactively refreshing charts based on the data that is being fetched from the server asynchronously using AJAX. I really like jqPlot, but when trying to update the graph periodically (by calling replot(), without page refresh), it causes a huge browser memory leak. It seems to be a well known issue occurring on all major browsers.

我没有尝试过 Flot protovis ,但快速搜索显示它们似乎有相同的问题。

I haven't tried Flot and protovis, but quick googling reveals that they seem to have the same problems.

您知道任何JavaScript图表库在图表更新后不会引入内存泄漏。

Are you aware of any JavaScript charting library that does not introduce memory leak after several updates of the chart?

推荐答案

您可以查看 Highcharts 快速Google搜索不会t似乎表明内存泄漏是很大的问题。

You could take a look at Highcharts. A quick googling doesn't seem to indicate that memory leaks are much of an issue.

这篇关于在更新图表时不会导致内存泄漏的图表库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆