|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 5/6/2008 1:33:11 PM
Posts: 4,
Visits: 7
|
|
I can't seem to get $FC->getXML(); to work properly. I have a chart that is being rendered fine and is receiving the xml data properly, and I can see the xml data string in my javascript but in my php code I cannot seem to store the xml data. Is there something I'm doing wrong?
Here's what I'm trying to do in the php file after i've set all chart params and created the instance of the chart:
# Create Line chart Object
$FC = new FusionCharts("MSLine","600","400");
# set the relative path of the swf file
$FC->setSWFPath("./dl/chart/FusionCharts/");
# (skipping addition of param setting code and addition of data, it's working as the chart renders)
$xml = $FC->getXML();
# Render Chart
$FC->renderChart();
echo "xml : " . $xml;
The problem is I can't see my $xml variable that I wish to echo with the php file. Is there something I'm not doing write in my call to getXML(); ?
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 5/6/2008 1:33:11 PM
Posts: 4,
Visits: 7
|
|
| I read something about debug mode being required for getXML to work. Is this correct? I've searched the documentation for the FusionCharts Free but can't seem to find how to enable debug mode for my charts.
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 10/3/2008 11:59:51 PM
Posts: 328,
Visits: 1,356
|
|
Hi Mac, Could you please try this code?echo "<textarea rows='10' cols='50'>$xml</textarea>";
Thanks, Arindam FusionCharts Team www.fusioncharts.com
|
|
|
|