Sign in to follow this  
Arindam

Can get FusionCharts_Gen.php to generate charts

Recommended Posts

Hi,

I'm trying to get FusionCharts_Gen.php to generate charts.  I have installed the scripts and wsf files into a directory structire exactly the same as the doc suggests.  However, when I run the script all I get is the word "Chart" and the HTML that is generated looks like the following.  Any ideas?

<html>
  <head>
   <title>First Chart Using FusionCharts PHP Class</title>
   <script language='javascript' src='../fusionCharts/FusionCharts.js'></script>
  </head>
  <body>
    <!-- START Script Block for Chart <?=$chartId;?> -->

 <div id="<?=$chartIdDiv?>">
  Chart.
 </div>
 <script type="text/javascript"> 
  //Instantiate the Chart 
  var chart_<?=$chartId?> = new FusionCharts("<?=$chartSWF?>", "<?=$chartId?>", "<?=$chartWidth?>", "<?=$chartHeight?>", "<?=$ndebugMode?>", "<?=$nregisterWithJS?>", "<?=$this->JSC["bgcolor"]?>","<?=$this->JSC["scalemode"]?>","<?=$this->JSC["lang"]?>");
   chart_<?=$chartId?>.setTransparent("<?=$nsetTransparent?>");

  <? print $tempData; ?>
  //Finally, render the chart.
  chart_<?=$chartId?>.render("<?=$chartIdDiv?>");
 </script> 
 <!-- END Script Block for Chart <?=$chartId?> -->
  </body>
</html>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this