I dont see the chart but I see the word `Chart.`
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



I dont see the chart but I see the word... Expand / Collapse
Author
Message
Posted 11/13/2007 2:06:51 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/13/2007 2:21:44 PM
Posts: 1, Visits: 2
Hi to all,

     How come I dont see the chart, I only see the word `Chart` when I render my chart?

This is my code:

$strXML .= "<graph formatNumberScale='0' decimalPrecision='0' showvalues='0' animation='1' numdivlines='3' numVdivlines='0' yaxisminvalue='1000' yaxismaxvalue='1800' lineThickness='3'>";
$strXML .= "<categories>";
$i=0;
foreach($statuses as $status){
 $strXML .= "<category name='"  .$status[$i] . "'/>";
$i++;
}
$strXML .= "</categories>";
$i=0;
while($i < count($users)){
 $strXML .= "<dataset seriesname='" . $users[$i] . "'>";
 $a=0;
 while($a < count($count[0])) {
  $strXML .= "<set name='" . $count[$i][a] . "' value='" . $count[$i][a] ."' color='". getFCColor() ."'/>";
  $a++;
 }
 $strXML .= "</dataset>";
 $i++;
}
$strXML .= "</graph>";
echo renderChart("FusionCharts/FCF_Line.swf", "", $strXML, "agentbenchmark",1000, 600);

Can you help me with this?

Good day

Rey Philip Regis
Intermediate PHP Programmer
Cebu City, Philippines

Post #3034
Posted 11/14/2007 12:38:44 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: 10/11/2008 2:58:00 AM
Posts: 811, Visits: 1,289
Hi,
YOu need to include FusionCharts.js file in the HTML HEAD part usin
 
<Script> 
 
say...
 

<SCRIPT type="text/javascript" LANGUAGE="Javascript" SRC="../JSClass/FusionCharts.js"></SCRIPT>
 

NOTE : I find that you are using $strXML .="<graph....
 
it may be $strXML ="<graph...
 

Since you are building XML for multiseries chart you need to load
 
FCF_MSLine.swf file


Regards,

Sudipto Choudhury
FusionCharts Team
Post #3040
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 2:51pm


Execution: 0.063.