FusionCharts Forum: Realtime chart and catching error conditions - FusionCharts Forum

Jump to content

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

Realtime chart and catching error conditions

#1 User is offline   fusionuser3214 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 15-January 10

Posted 28 January 2010 - 01:01 PM

In my code I am making jsp calls to get real time data and would like to trap error conditions like when the JSP server is unavailable. I have been looking at the widgets documentation under "JavaScript events raised by the chart " and tried to implement using the example code but could not get it to work.



See attached file Chart.txt for my code.



I can definitely see the alert boxes for FC_Rendered and FC_DataLoaded when charts are first loaded.



The XML file notLoad.xml contains URL to JSP and makes call every 5 seconds. Let us say all components are up and running then my charts are all displayed properly. Now if I shut down the jsp server, the chart remains frozen at the last displayed value. I am trying to catch such condition and display an error message or take some other route.



Realtime data source in the XML

dataStreamURL='chart.jsp?name=value' refreshInterval='5'



Can you guys help me with this.



Thanks

Attached File(s)

  • Attached File  Chart.txt (2.15K)
    Number of downloads: 16

0

Other Replies To This Topic

#2 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 01 February 2010 - 07:07 AM

Hello,

I'm afraid, even if the refreshInterval is 5, if the chart does not receive any proper data, the chart will not update.

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#3 User is offline   fusionuser3214 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 15-January 10

Posted 01 February 2010 - 09:49 AM

Quote

Madhumita (2/1/2010)
Hello,



I'm afraid, even if the refreshInterval is 5, if the chart does not receive any proper data, the chart will not update.




Thanks Madhumita.



I do agree that if there is no incoming data for the real time chart it will not update. I was hoping there be some function in the API to trap such a case.
0

Other Replies To This Topic

#4 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 02 February 2010 - 01:46 AM

Hello,

I'm afraid, this is not be possible, as of now.

You can check out the Javascript APIs exposed for Data-streaming charts.

http://www.fusioncharts.com/widgets/docs/Contents/DSC_JSAPI.html

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

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