I have been trying to integrate fusioncharts library with my drupal 7 site.

Just to check if everything is working properly, I followed this documentation of creating a basic graph with data contained in Data.xml file.

http://docs.fusioncharts.com/charts/contents/guide-for-web-developers/php/PHP_BasicExample.html

the entire documentation is here http://docs.fusioncharts.com/charts/ FYI, I need to use php as am more comfortable with it.

I have extracted the downloaded folder

into

/sites/all/libraries/FusionChartsFree/

with changes in paths (and nothing else,) I have pasted the code in the given example into my drupal 7 node with php enabled I have installed the libraries module

<?php
//We've included ../Includes/FusionCharts_Gen.php, which contains FusionCharts PHP Class
//to help us easily embed the charts.
$name = "FusionChartsFree";
if(
$path = libraries_get_path($name))

include(
$path.'/Code/PHP/Includes/FusionCharts.php');

?>

<HTML>
         <HEAD>     
            <?php
     
//You need to include the following JS file, if you intend to embed the chart using JavaScript.
      //When you make your own charts, make sure that the path to this JS file is correct. Else, you
      //would get JavaScript errors.

     
include($path.'/Code/FusionCharts/FusionCharts.js');
     
?>

      <SCRIPT type="Javascript" SRC="/sites/all/libraries/FusionChartsFree/Code/FusionCharts/FusionCharts.js"></SCRIPT>
      <TITLE>FusionCharts - Simple Column 3D Chart</TITLE>
   </HEAD>
   <BODY>
   <?php
     
//Create the chart - Column 3D Chart with data from Data/Data.xml
     
echo renderChart("/sites/all/libraries/FusionChartsFree/Code/FusionCharts/Column3D.swf", "/sites/all/libraries/FusionChartsFree/Code/PHP/BasicExample/Data/Data.xml", "", "myFirst", 600, 300, false, true);
  
?>

   </BODY>
</HTML>

I get the below output.. Its pretty long hence I have put then in part by part in these pics..

Part 1
Part 2
Part 3
Part 4
Part 5

(FYI. Those flash files that appear in the output, do not display anything if I click on them)

now, suppose if I remove the below line from the code,

<?php
include($path.'/Code/FusionCharts/FusionCharts.js');
?>

I get nothing..! I mean only a text which reads "cahrt"..! the below output.

http://i.stack.imgur.com/FIsex.png

So how can I make it work in DRUPAL 7..??? I am also having similar trouble with pchart too. even pchart does not display anything not even an error or warning. simply there is nothing in the node body. (in fusioncharts it at least shows a text "chart"..:p)