Sign in to follow this  
LivingLegend

Getting error while using setDataXML function

Recommended Posts

Hi,

 

 

 

I am facing one problem while using setDataXML function to set xml in chart run time.

 

 

 

On FireFox:

 

Error is: chartObj.setDataXML is not a function

 

 

 

On IE:

 

Error is: Object doesn't support this property or method

 

 

 

When chart load first time I am setting blank data "<chart></chart>" in chart and after that

 

I am setting my original xml data by using setDataXML function and got above mentioned error.

 

 

 

I have also tried the samples provided by you but getting same error.

 

I have checked following file provided by you in package.

 

Path: CodeJavaScriptBasicsChangeDataXML.html

 

 

 

I have checked all other examples in Basics directory but no one is working.

 

That means any xml related function like getXML, setDataXML is not working.

 

 

 

It seems that it is a bug in FusionCharts.

 

 

 

Please provide me solution ASAP or any workaroung.

 

 

 

Thanks

 

LivingLegends

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

 

 

 

The chart can not be referenced by its ID before it has been rendered. If the getChartFromId function is called before the chart has rendered you will get this error.

 

 

 

Please ensure that you call this method after the FC_Rendered() event has fired.

 

ref. - http://www.fusioncharts.com/docs/Contents/JS_Events.html

 

http://www.fusioncharts.com/docs/Contents/JS_setDataXML.html

Share this post


Link to post
Share on other sites

Hi,

 

 

 

I have already mentioned that I am loading chart with blank data first and then setting original data.

 

 

 

Chart is already rendered. After that I am setting different xml data using setDataXML method and getting this error.

 

 

 

I have also mentioned that your given examples are also not working.

 

If problem is at our side that at least, examples should work.

 

 

 

Kindly update on this.

 

 

 

Thanks

 

LivingLegends

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Please send us a scaled down version of your implementation.

Awaiting your reply.

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