Sign in to follow this  
ewang

Live update the trend point in Angular Widget?

Recommended Posts

Hi,

 

 

 

I am using the real-time support in Angular Widget. It updates nicely every 1 second with dataStreamURL, and I now want to add a trend point in to the chart so that it will be pushed forward by the needle as the needle moves. So it will simulate a **moving** high watermark effect. I understand the trend point is statically defined in the XML file. But is there a way to capture the event as soon as the chart receives a new value in order to do tricks with the trend point?

 

 

 

Would it be nice to have the chart raise an event similar to FC_DataLoaded(DOMId).....? Instead of raising an event once, it raises an event everytime a new value is received.

 

 

 

 

 

Thanks

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Madhumita

Hi,

Welcome to FusionCharts Forum :D

I am afraid, you can not live update any trendpoint as you can update a dial. Hence, using realtime update you can not simulate the **moving** high watermark effect. But, you can always keep updating the chart using dataXML method (can get the latest XML using AJAX) , to set a new dial value and new trendpoint.

You can opt to set animation off (animation='0' ) to make the transition smooth.

In case, you are using realtime update, you can use the callback function FC_ChartUpdated() which is invoked whenever a new value is set.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this