dee Report post Posted April 8, 2010 (edited) 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 April 8, 2010 by Guest Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted April 8, 2010 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
dee Report post Posted April 8, 2010 Fixed it! I was being a dumb *** and hadn't enclosed my php function call to return the XML in quotes. fixed php line below: Echo("myChart.setDataXML("".outputChartXML($graphObject)."");"); Regards Dee Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted April 8, 2010 Hi, Thanks for sharing the solution. Glad that your issue is resolved. Happy FusionCharting. Share this post Link to post Share on other sites