Sign in to follow this  
Helio

Php Class On Fusion Widgets

Recommended Posts

Hi,

 

I'm trying to use the Beta php class for fusionwidgets on this post:

http://forum.fusioncharts.com/topic/7250-is-there-a-php-class-for-fusionwidgets/

 

This is the code:

 

<script language='javascript' src='FusionCharts/FusionCharts.js'></script>

 

<?php

# Include FusionCharts PHP Class

include("FusionCharts_Gen.php");

 

# Create MSLine chart Object

$FW = new FusionCharts("Thermometer","80","300");

# set the relative path of the swf file

$FW->setSWFPath("widgets/");

 

$strParam="palette=4;lowerLimit=0;upperLimit=10;numberSuffix=C";

$FW->setChartParams($strParam);

$FW->addChartData(5);

 

$FW->renderChart();

?>

 

It displays all ok but does not seem to assume the value I define in "$FW->addChartData(5);"

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