mtatiana Report post Posted August 4, 2010 Hello, I want to create an MSSpline chart using PHP, so i have generated an XML code with PHP and i want to put the data using setDataXML but it doesn't work. My code: $strXML = ""; $strXML .= ""; $strXML .= ""; $strXML .= ""; $strXML .= ""; $strXML .= ""; $strXML .= ""; $strXML .= ""; $strXML .= ""; $strXML .= ""; $strXML .= ""; $strXML .= ""; $strXML .= ""; $strXML .= ""; Erreur FusionCharts var chart = new FusionCharts('FusionCharts/Charts2/MSSpline.swf', 'ChartId', '500', '500', '0', '0'); chart.setDataXML('<?php echo $strXML ?>'); chart.setTransparent(true); chart.render('chartdiv'); Thanks for your help Share this post Link to post Share on other sites
Sanjukta Report post Posted August 4, 2010 Hi, Welcome to FusionCharts Forum. Could you please use chart.setDataXML("<?php echo $strXML ?>"); instead of chart.setDataXML('<?php echo $strXML ?>'); in your code? Hope this helps. Share this post Link to post Share on other sites
mtatiana Report post Posted August 4, 2010 Thanks a lot. It works!!! Share this post Link to post Share on other sites
Sanjukta Report post Posted August 4, 2010 Hi, You are welcome. Glad that your issue is resolved. Happy FusionCharting! Share this post Link to post Share on other sites