如何设置 Google 可视化动态图表的状态?
I'm using GWT and the Google Chart Tools (aka Visualization) 1.1 Library of the Google API Libraries for GWT.
I want to display a Motion Chart and to set the state as possible in Javascript.
Has someone an idea how to set the state?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这里是 GWT-Getting Started 页面中稍微修改过的 MotionChart,其中数据来自 Javascript 文档。我没有测试它,所以我不确定代码是否有效。
Here is slightly modified MotionChart from GWT-Getting Started page with data from Javascript documentation. I Didn't test it so I'm not sure if the code works.
我不完全确定我理解这个问题。在您引用的文档中,有用于设置状态的部分。
本质上,您必须打开已填充的 MotionChart 可视化,操作要默认显示的实体/选项,然后从图表的 GWT 控件中获取状态字段。
http://code.google.com/intl /fr/apis/visualization/documentation/gallery/motionchart.html#Motion_Chart_initial_state
从那里,您可以通过正常例程设置选项。
I'm not entirely sure I understand the question. In the docs you referenced, there is section for setting the state.
Essentially, you have to open up the MotionChart visualization you have already populated, manipulate the entities/options you want to show up by default, and then grab the state field from GWT controls for the chart.
http://code.google.com/intl/fr/apis/visualization/documentation/gallery/motionchart.html#Motion_Chart_initial_state
From there, you can set the options via normal routine.
我创建了两个自定义函数:一个用于通过 ajax 调用获取数据,另一个用于操作现有表中的数据并定期请求额外的 .draw()。
您可以在此处查看工作演示和快速教程 - http://www .logicwizards.net/monitor-lamp-servers-wbash-php5/
我希望它有帮助......
I created two custom functions: one to get the data via an ajax call, and the other to manipulate the data in the existing tables and request an additional .draw() periodically.
You can see a working demo and a quick tutorial here -- http://www.logicwizards.net/monitor-lamp-servers-wbash-php5/
I hope it helps...