SCYForce Report post Posted April 13, 2010 Hi Guys; I am rendering a fusion chart using the setDataXML method and when I try to reset the data using setDataXML method, it says chart doesn't have this function. I am rendering the chart using: var myChart = new FusionCharts('/Column3DChart.swf', 'myChartId','713', '300', '0', '1'); myChart.setDataXML("sample data here"); myChart.setTransparent(true); myChart.render('chartdiv'); After the chart is loaded, I have a javascript function to change the chart data, myChart.setDataXML(xmlData); myChart is a global object. hopefully this should updated the chart automatically, but I always get error - myChart doesn't have this function Then I modify the fusionchart.js source code in setDataXML function, setDataXML: function(strDataXML){ //If being set initially if (this.initialDataSet==false){ //This method sets the data XML for the chart INITIALLY. this.addVariable('dataXML',this.encodeDataXML(strDataXML)); //Update flag this.initialDataSet = true; }else{ //Else, we update the chart data using External Interface //Get reference to chart object var chartObj = infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute('id')); alert(chartObj.setDataXML); if (!chartObj.setDataXML) { __flash__addCallback(chartObj, "setDataXML"); } alert(chartObj.setDataXML); chartObj.setDataXML(strDataXML); } } However it is still not working, my flash file is hosted on a webserver, and there is no way to change the security settings on that server. Do you have any suggestions or insight? Thanks! Sincerely Richard Share this post Link to post Share on other sites
royhk60 Report post Posted April 15, 2010 i had this situtation yesterday. You can try to go to and set the permisssion to allow... it's work fine for me. Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted April 16, 2010 Hi Roy, Thanks for sharing your idea. Happy FusionCharting. Share this post Link to post Share on other sites