estabahn Report post Posted September 18, 2009 Is it possible to have a chart check the data periodically to see if it has changed? If I create a page with several charts, it would be great to be able to have the chart poll the datasource once an hour so that the charts would display up-to-date information. Possible? Thanks! Share this post Link to post Share on other sites
Guest Rajroop Report post Posted September 19, 2009 Hello, Welcome to the FusionCharts Forum! Yes, this is possible using FusionCharts. You would have to state a time period of refresh interval, in the following part of the code where you are updating the chart with the data: function updateChart(DOMId){ var chartObj = getChartFromId("chart1Id"); chartObj.setDataURL("NewData.xml"); this.document.frmUpdate.btnUpdate.disabled = true; } Also, you would need to state the following line of code in place of the above 3rd line of code. This will make sure that the new XML is deployed in the chart and the old XML is not cached! chartObj.setDataURL("NewData.xml?noCache="+new Date().valueOf()); I hope this helps. Share this post Link to post Share on other sites