先引用一段话,来自sencha的官方网站的论坛。
引用
Ext.chart.axis.Radial problems
Hi,
This is by no means taking a shot at Sencha's dev team, but it seems that the Radial axis needs serious rework. So, to whom this may concern:
[1] the "drawAxis" function assumes that the store count != 0 the first time when it is called. This is only true if the store has client-side data. Try loading a Radar chart using a "remote" store and the labels and axis drawn by the "drawAxis" function are not handled correctly.
The reason for this is because "drawAxis" wants to be smart by "caching" labels and axis sprites. So the first time when this function is called, the "remote" store has not loaded yet, therefore only the "circles" are cached, the "this.sprites" is set, but since there are no records in the store yet, no sprites are enabled for the labels and axis.
I think the best way to fix this is to split the "this.sprites" into 3 chunks (circles,axis and labels) and only draw/redraw sprites when necessary. At the moment all these sprites are added to "this.sprites"
[2] Please also fix the docs for the Radial. The class is marked as "private" which makes jsduck skipping it.
[3] (And this is the last one for this thread, I promise), Please use the "me." notation instead of "this.". Let us poor developers who read the codebase stay away from heart attack pills and keep our few remaining strain of hair.
Regards,
Gevik.
他说的第一个问题的原因就是因为store在加载完之前已经开始渲染雷达图,但是Ext.chart.axis.Radial在绘制的过程中没有读到store里面的值,所以加载完后,x轴的文字没有了。
解决的办法只能给radar的store先赋初始值,这样以后在改变store的时候,雷达图就可以完整的显示出来了。
extjs4的一个bug。
小宝制造。
分享到:
相关推荐
页面静态文件: 博文链接:https://shangql.iteye.com/blog/1832966
Extjs图片渲染效果Extjs图片渲染效果Extjs图片渲染效果Extjs图片渲染效果
Extjs4做的一个图片浏览器
从开发大型的web后台或者企业管理系统来看,ExtJs3的缺陷还是比较明显的,从ExtJs4 开始引入了MVC架构,从而能够从容的组织系统的JS文件了。 从ExtJs5开始则引入了MVVC架构。 从网上资料来看,多数都是停留在ExtJs3...
Ext JS 4.X 中文API,不过有些地方不是很好,显示的有点慢!
EXTJS4开发的图片文章管理项目实例,后台使用JAVA+MYSQL,建表语句位于DB文件夹下,使用Myeclipse导入项目即可
Extjs4的demo 很不错的例子
extjs4.x中文api 实用比较方便 。
EXTJS4自学手册——EXT文件目录,本地加载文档,命名规范 EXTJS4自学手册——EXT基本方法、属性(onReady、define、create) EXTJS4自学手册——EXT基本方法、属性(apply、applyIf、constructor) EXTJS4自学手册...
extJs3升级extjs4方案, extJs3升级extjs4需要修改大量代码
Extjs 批量上传图片,选择多个图片可批量删除操作,
包含各种类型的extjs小图标,Extjs4小图标
Extjs4的textfield控件竟然没有tooltip悬浮提示,这应该算是个bug吧。网上查了很多,也没有方案。后来自己通过查询并整理出这个方案,终于实现了。 思想如下: 在textfield渲染时注册mouseover事件,然后在其中调用...
4.此组件继承的是Ext.Panel,而不是Button,所以此组件并没有所有Ext.Button的功能但是拥有所有Ext.Panel功能并新增了点击事件(使用规范请参照js附件的onReady函数)。本人现正在研究如何重写Ext.Button,如有所收获,...
我很自豪能代表Sencha和ExtJS团队和大家成功的分享了ExtJS 4的预览版、3个beta版和今天发布的正式版等5个版本。 ExtJS 4从创建之初,就以最全面现代化为目标,它采用了改进的架构和加入了许多新的特性,从而使你可以...
extjs4 中文 API
EXTJS 强大的图片查看器 仿windows照片查看器
ExtJs 4 API 中文
EXTJS, 图形EXTJS, 图形EXTJS, 图形EXTJS, 图形EXTJS, 图形EXTJS, 图形
项目进行前端框架升级——extJS 4升级至extJS6.6所遇的一些问题及相对应的解决方案建议