本文介绍了ExtJS 4中的库存图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何绘制数百点的股票图表或折线图?
我在常规折线图中禁用动画,但不成功,但仍然过于沉重和缓慢。

How can I draw an stock chart or a line chart with hundreds points?I disabled animation in regular line chart, but not successful and still too heavy and slow.

推荐答案

最近写了一篇关于在Ext JS 4中创建股票图表的博客 - 。它使用了几百个点,在现代浏览器中执行得很好,并且在IE7-8中不太差。

I've recently written a blog post on creating stock charts in Ext JS 4 - http://www.scottlogic.co.uk/2011/12/ext-js-4-stock-charts/. It uses a couple of hundred points and performs fine in modern browsers and isn't too bad in IE7-8.

然而,这说明,即使在搞乱了Ext JS构建系统,运行图表所需的最低Ext build仍然是.5MB,对于某些应用程序来说太重了。然而,CSS可以削减到只是几个规则 - 如果你愿意花时间试图找出你需要从巨大的ext-all.css!

This said however, even after messing with the Ext JS build system, the minimum Ext build required to run the charts is still something like .5MB which is too heavy weight for some applications. The CSS however can be chopped down to just a few rules - if you're willing to spend the time trying to figure out which ones you need out of the huge ext-all.css!

这篇关于ExtJS 4中的库存图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 22:06