ExtJS 4 中的股票图表 [英] Stock chart in ExtJS 4

查看:25
本文介绍了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 中创建股票图表的博客文章 - http://www.scottlogic.co.uk/2011/12/ext-js-4-stock-charts/.它使用了几百分,在现代浏览器中表现良好,在 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 构建仍然是大约 0.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 中的股票图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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