Sign in to follow this  
Guest Basundhara Ghosal

setDataXML is not a function

Recommended Posts

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");












After the chart is loaded, I have a javascript function to change the chart data,








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.




//Update flag


this.initialDataSet = true;




//Else, we update the chart data using External Interface


//Get reference to chart object


var chartObj = infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute('id'));




if (!chartObj.setDataXML)




__flash__addCallback(chartObj, "setDataXML");






















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!







Share this post

Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Roy,

Thanks for sharing your idea.

Happy FusionCharting. :)

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