Sign in to follow this  
weijunji

How to refresh FusionChart

Recommended Posts

We recently upgraded our FusionChart to version 3.4.0 and had an issue on how to refresh the chart on a regular interval.

 

I tried to use  refreshinterval in <chart> as an chart attribute  without success. I also tried to .setXMLURL() every 60 seconds using JavaScript without any luck.

 

We are using xmlurl as dataFormat and using xmldata.jsp as dataSource. Each time, when xmldata.jsp is called, it returns with new set of data. The idea is to call the xmldata.jsp once every 60 seconds to get new data to update the chart.

 

On the earlier version of FusionChart, we used either javascript setInterval(...) or refreshinterval without problem. How could we do the same thing in the new JavaScript only version of FusionChart? I do not want to refresh the whole web page, Just the chart.

 

Any help is greatly appreciated.

 

Thanks.

 

 

 

 

 

 

 

Share this post


Link to post
Share on other sites
Hi,

refreshinterval() and setXMLURL() should be working for you because of backward compatibility of FusionCharts XT Suite. If not their might be some other problem, please elaborate on the issue faced with a scaled down sample or screenshot.
 

Hope this helps


Share this post


Link to post
Share on other sites

Still not working for me. Could you please look at the attached file?

 

Test1.html is my web html file which needs testdata.jsp file. Since a jsp file is not allowed to be uploaded, I changed its extension to add .txt.

 

I used refreshinterval in this case.

 

 

Thanks.

 

test1.html

testdata.jsp.txt

Share this post


Link to post
Share on other sites

Also, if refreshinterval is not the supported feature for FusionChart XT, could you please let me know the new way to get data refreshed periodically? We will modify our web pages to upgrade to the new XT version.

 

Thanks a lot for helping.

Share this post


Link to post
Share on other sites
Hi,
 
Real time data is supported only by real time charts, so you should choose some real time charts in place of bar charts.
 
Also you should be use chartName.feedData() to feed real time data to the real time charts.
 

Hope this helps.

Share this post


Link to post
Share on other sites

I am much confussed with the term. I am asked to submit a brief summery about the chart but nothing i am know about that. I had used a admission essay writing service before and i don't know whether will they help me to complete the task or not. I signed in to this forum to leran more about the chart. I think what i have learned so far is not enough to write a paper

Share this post


Link to post
Share on other sites

Fusion charts are chart that used to update the data of the chart. Configuration option is for that. Then you can update the data of the chart.javascript allows you to update the fushionchart by many methods. You have to initialize the chart, and then you have to update the chart by using the html tags.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this