如何动态改变线性规融合图上的指针位置
我有线性量表融合图表,指针位于图表上方,其中指针值不断动态更新,并且我尝试根据 xml 文件中的值定位指针,但我面临的问题是每次重新定位指针时,整个图表被刷新,我的要求是仅重新定位指针,完整的图表不应刷新,任何人都可以帮助实现此功能,我正在尝试遵循以下链接中显示的示例http://www.fusioncharts.com/widgets/Gallery/Linear3.html
I have linear guage fusion chart with pointer above the chart, where the pointer value keeps updating dynamically , and i am trying to position the pointer based on the value in xml file,but the problem i am facing is each time pointer gets repositioned , the whole graph gets refreshed , my requirement is to reposition only the pointer, the complete chart should not be refreshed , can any one help, to implement this functionality, i am trying to follow the example shown in following link http://www.fusioncharts.com/widgets/Gallery/Linear3.html
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您始终可以使用 JavaScript 或实时数据流来更新线性仪表的指针值。
假设您使用以下 XML 创建了图表:
并且使用以下 JavaScript 呈现图表:
现在您可以使用以下 JavaScript 代码更新此图表:
还有其他 API 函数,例如:setDataForId(Id, value) 或 feedData (updateDataQueryString)
例如,
或者
您也可以使用它来仅更新现有仪表的数据。
欲了解更多信息,请阅读:
http://www.fusioncharts.com/widgets/docs/Contents/Linear_JSPAPI.html
详细了解如何使用服务器端实时数据流来更新仪表数据:
http://www.fusioncharts.com/widgets/docs/Contents/Linear_RealTime.html
为此,您需要创建数据提供程序页面,其输出将是查询字符串格式的单行字符串,例如:
&value=30
You can always update the Linear Gauge's pointer's value using JavaScript or real-time data streaming.
Say for instance you have created the chart using the following XML :
and the Chart is rendered using the following JavaScript :
Now you can update this chart using the following JavaScript code:
There are other API functions like: setDataForId(Id, value) or feedData(updateDataQueryString)
e.g.,
or
which you can also use to update only the data of an existing gauge.
For more information please read:
http://www.fusioncharts.com/widgets/docs/Contents/Linear_JSPAPI.html
Read more on how to use Server side real time data streaming to update the gauge's data from:
http://www.fusioncharts.com/widgets/docs/Contents/Linear_RealTime.html
For this you would need to create the dat provider page whose output would be a single line string in query string format like:
&value=30