jpickrel Report post Posted July 21, 2011 I have an couple questions regarding the real time gauges. I have angular gauges that refreshes the value every 60 second from a perl script that returns the value. The questions I have are: 1. When I set the UpperLimit on the gauge and the script returns a value that is greater than the upperLimit it does not display the value. Is there a way to set this dynamically? 2. Is there a way to call the script when the gauge renders so that it may get the correct value? 3. I have a page that contain 12 different gauges is there a way to run the script and return a string that will update all the gauges as once? Thanks in advance for any help. Your assistance is very appreciated. Share this post Link to post Share on other sites
Guest Angshu Report post Posted July 21, 2011 Hi, Welcome to FusionCharts Forum! 1. When I set the UpperLimit on the gauge and the script returns a value that is greater than the upperLimit it does not display the value. Is there a way to set this dynamically? I am afraid, FusionCharts does not support values greater than the upper limit mentioned in the xml code.Even, setting values dynamically will not work. 2. Is there a way to call the script when the gauge renders so that it may get the correct value? Could you please elaborate your query a bit more? Are you looking to call the script when the gauge renders first time or when the gauge gets updated? 3. I have a page that contain 12 different gauges is there a way to run the script and return a string that will update all the gauges as once? It depends upon the network traffic. As a work around, you would need to get your data using AJAX and update all gauges using JavaScript. Hope this helps. Share this post Link to post Share on other sites
jpickrel Report post Posted July 27, 2011 2. Is there a way to call the script when the gauge renders so that it may get the correct value? I have multiple queries and calculations that I use to get the desired results for my gauges. I have these placed in another perl script and that is what i have placed in dataStreamURL attribute and it return the string &value=(some number). This all works great, however it does not call this script until my first refreshInterval hits and I need the gauge set to this value when the gauge is first rendered. Is there a way to call this script when the gauge first renders to get my calculated value or do I have to place all my queries and calculations into the page on which my gauge renders to get the initial value also? Thank you. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted July 27, 2011 you can define FC_Rendered() function which will be called when a gauge renders. Just make sure that you have set registerWithJS on when rendering it. Share this post Link to post Share on other sites