Sign in to follow this  

Chart Not Updating

Recommended Posts

Hi I am trying to incorporate FusionCharts v3 into a C# ASP.NET project but am having problems refreshing the graph on postback. When I retrieve the necessary data from database I build an xml file using this data, save this file and then use this file to generate the graph but it

Share this post

Link to post
Share on other sites

You can use the following JavaScript code to stop caching of XML data:

chart1.setDataURL(escape("xmlfile.xml?currTime=" + getTimeForURL()));
  * getTimeForURL method returns the current time 
  * in a URL friendly format, so that it can be appended to
  * dataURL for effective non-caching.
 function getTimeForURL(){
  var dt = new Date();
  var strOutput = "";
  strOutput = dt.getHours() + "_" + dt.getMinutes() + "_" + dt.getSeconds() + "_" + dt.getMilliseconds();
  return strOutput;

Share this post

Link to post
Share on other sites

hi i have come across the same prob as above with the drilldown of the charts as i could not fix it the last time, the first chart is a 3DColumn chart and the columns are links to the same page so the first time you click on a column a pie chart is then displayed containing more data but there is a checkbox on the page which changes the data ranges of the data in the pie chart and so changes the data but when the link is clicked with the checkbox changed the same data from is displayed in the graph. the data changes for each column clicked but not when a change is made to the checkbox the data stays the same as for the first load of the graph. any help would be appreciated thanks

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