FusionCharts Forum: I dont see the chart but I see the word `Chart.` - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

I dont see the chart but I see the word `Chart.`

#1 User is offline   rey_philip 

  • Forum Newbie
  • Group: Members
  • Posts: 1
  • Joined: 13-November 07

Posted 13 November 2007 - 02:06 PM

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
0

Other Replies To This Topic

#2 User is offline   Sudipto Choudhury 

  • Supreme Being
  • Group: Administrators
  • Posts: 1886
  • Joined: 19-March 07

Posted 14 November 2007 - 12:38 AM

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

Follow us on Twitter

I code, therefore I am.

0

Other Replies To This Topic

#3 User is offline   naim 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 28-January 10

Posted 28 January 2010 - 08:21 AM

Can you help me too?



I'm using codeigniter.



My view looks like this:



http://pastebin.com/m60d45118



My controller reply function:



http://pastebin.com/m74091a8f



FusionCharts.php is in rootOfApp/charts/FusionCharts.php

FusionCharts.js is in rootOfApp/js/FusionCharts.js



I see also only the Chart. word.

Plz. help!
0

Other Replies To This Topic

#4 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 29 January 2010 - 05:45 AM

Hello,

Could you please check again if the path for the FusionCharts.js file you have provided is correct or not?

The division shows the text 'Chart' in the case where the script can not refer with the FusionCharts.js file.

Awaiting your reply. :D

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#5 User is offline   naim 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 28-January 10

Posted 29 January 2010 - 05:47 AM

It's correct
0

Other Replies To This Topic

#6 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 29 January 2010 - 06:00 AM

Hello,

Could you please once try using renderChartHTML method?

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic