Sign in to follow this  
dlacopo

Automatic Refresh of chart without refreshing the entire page.

Recommended Posts

Hi, my script is below.

How can I refresh my chart automatically without refreshing the entire page?

And how can I prevent the XML data from remaining in the brower's cache?

I did not modify the original FusionCharts.js file located here: "FusionCharts_EvaluationJSClassFusionCharts.js".

Thanks.

[ code ]

<?php

include("includes/FusionCharts.php");

?>

<HTML>

<HEAD>

 <TITLE>

TEST

 </TITLE>

 <SCRIPT LANGUAGE="Javascript" SRC="js/FusionCharts.js"></SCRIPT>

</HEAD>

<BODY>

<?php

 $strDataURL = encodeDataURL("Data.php?animate=1");

 echo renderChart("swf/Column3D.swf", $strDataURL, "", "Graph", 600, 300, false, false);

?>

</BODY>

</HTML>

 

[/ code ]

Edited by Guest

Share this post


Link to post
Share on other sites

Does this only apply to Column3D charts or to all charts?

If I have multiple charts on the same page, how can I get the script to refresh all the charts?

Thanks.

Share this post


Link to post
Share on other sites

Hi,

This program is applicable for all FusionCharts. For multiple charts refreshing you have to use JavaScript. Please see the javascript section. Could you please use setDataXML method for that?

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