Sign in to follow this  
mtatiana

problem with SetDataXML

Recommended Posts

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

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
Guest
This topic is now closed to further replies.
Sign in to follow this