Sign in to follow this  
Guest Basundhara Ghosal

strDataXML.match is not a function

Recommended Posts

Hi Guys;

 

 

 

I am rendering a fusion chart using the setDataXML method, and I keep getting the error "strDataXML.match is not a function"

 

 

 

I am rendering the graph like so:

 

 

 

var myChart = new FusionCharts('MSLine.swf?ChartNoDataText=Please configure your graph below.', 'myChartId','713', '300', '0', '1');

myChart.setDataXML(".outputChartXML($graphObject).");

myChart.setTransparent(false);

myChart.render('chartdiv');

 

 

 

 

 

 

 

However should I render the same graph using the setDataURL it renders fine.

 

 

 

 

 

Does anybody have any ideas on what the problem might be?

 

I noticed in the documentation that the setDataXML method cuts off the graph xml after a certain length. Could this be the issue?

 

 

 

I am really struggling with this just now so any help would be welcome, even if it is to confirm that it is not the length of the xml returned form my function outputChartXML.

 

 

 

Regards

 

Damien

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please send us the working sample for the same so that we might test it in our lab?

Also, could you please send us the link of the documentation where you have noticed the issue?

Awaiting your reply.

Share this post


Link to post
Share on other sites

Fixed it! :)

 

 

 

I was being a dumb *** and hadn't enclosed my php function call to return the XML in quotes. :blush:

 

 

 

fixed php line below:

 

Echo("myChart.setDataXML("".outputChartXML($graphObject)."");");

 

 

 

Regards

 

Dee

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Thanks for sharing the solution.

Glad that your issue is resolved.

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