Ext js4仪表图表和setValue
我正在尝试在 extjs 4 中设置一个仪表图表,该图表应该从 data.Store 数据计算出的“静态”值提供。
计算出的数据是在商店中的数据更改侦听器中获取的。
我读到了 setValue 方法,但我真的不明白如何使用它,有人能给我一些提示吗?
感谢大家, 氮
I'm trying to setup a gauge chart in extjs 4 that should be feeded from a "static" value calculated from data.Store data.
The calculated data is obtained in a datachange listener in the store.
I read about the setValue method but i really did not understand how to use it, can anyone give me some hint?
Thanks to all,
N
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我把头撞到墙上几个小时后,我才发现它是如何工作的。这是非常明显的:
请注意,
setValue
位于chart.series.items[0]
内。这是因为,尽管听起来违反直觉,仪表不是一种图表,而是一种系列。希望这对像我这样的其他 Ext 新手有帮助,因为文档确实可以使用更多示例!
After banging my head to the wall for some hours, I just found out how it works. And it was oh so obvious:
Notice that
setValue
is withinchart.series.items[0]
. This is because, as conter-intuitive as it may sound, Gauge is NOT a type of chart but a type of series.Hope this helps other newbies of Ext like me, because the documentation could really use some more examples!