FusionCharts Forum: Real Time Angular Gauges - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Real Time Angular Gauges

#1 User is offline   jpickrel 

  • Forum Newbie
  • Group: Members
  • Posts: 3
  • Joined: 23-March 10

Posted 21 July 2011 - 01:48 PM

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.
0

Other Replies To This Topic

#2 User is offline   Angshu 

  • Supreme Being
  • Group: Administrators
  • Posts: 3222
  • Joined: 08-December 10

Posted 21 July 2011 - 02:00 PM

Hi,

Welcome to FusionCharts Forum!Posted Image

Quote

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.

Quote

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?

Quote

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.Posted Image
Help us improve our documentation with your precious feedback at:

http://documentation...sioncharts.com/

Best,

Angshu

Follow us on @Twitter


0

Other Replies To This Topic

#3 User is offline   jpickrel 

  • Forum Newbie
  • Group: Members
  • Posts: 3
  • Joined: 23-March 10

Posted 27 July 2011 - 01:49 PM

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.
0

Other Replies To This Topic

#4 User is offline   Sudipto Choudhury 

  • Supreme Being
  • Group: Administrators
  • Posts: 1919
  • Joined: 19-March 07

Posted 27 July 2011 - 01:57 PM

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.
Regards,

Sudipto Choudhury
FusionCharts Team

Follow us on Twitter

I code, therefore I am.

0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic