ewang Report post Posted November 19, 2009 (edited) 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 November 19, 2009 by Guest Share this post Link to post Share on other sites
Guest Madhumita Report post Posted November 20, 2009 Hi, Welcome to FusionCharts Forum 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
ewang Report post Posted November 20, 2009 Thanks! it works! FC_ChartUpdated is not in the online documentation, please update the doc. Share this post Link to post Share on other sites
Guest Madhumita Report post Posted November 20, 2009 Hello, You are most welcome. The FC_ChartUpdated() is expalined in the documentation link below: http://www.fusioncharts.com/widgets/docs/?Linear_JSPAPI.html Happy FusionCharting. Share this post Link to post Share on other sites