• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install FusionChart on CI as plugin Plugin

#8
[eluser]baradji[/eluser]
I resolved the problem with base_url()

this is my code:

$strXML = "<chart caption='Equipements par Model: ".$nbre_ligne." modèles' xAxisName='Model Equipement' yAxisName='Nombre' pieSliceDepth='40' showBorder='1' formatNumberScale='0' numberSuffix='' slantLabels = '1' labelDisplay = 'ROTATE'>";
// Fetch all devices records
foreach($devices as $device)
$strXML .= "<set label='" . $device->model . "' value='" . $device->Nombre_postes . "' link='".base_url()."index.php/devicesStat/byModelListe/" . $device->Model_ID . "' />";
$strXML .= "</chart>";

//Create the chart - Pie 3D Chart with data from $strXML
$typeGraphique = base_url()."system/application/libraries/FusionCharts/Code/FusionCharts/Column3D.swf";
echo renderChart($typeGraphique, "", $strXML, "FactorySum", 1100, 600, false, false);


Messages In This Thread
Install FusionChart on CI as plugin Plugin - by El Forum - 11-14-2008, 12:06 AM
Install FusionChart on CI as plugin Plugin - by El Forum - 11-14-2008, 08:11 AM
Install FusionChart on CI as plugin Plugin - by El Forum - 11-14-2008, 10:16 AM
Install FusionChart on CI as plugin Plugin - by El Forum - 03-17-2009, 11:00 AM
Install FusionChart on CI as plugin Plugin - by El Forum - 03-17-2009, 11:05 AM
Install FusionChart on CI as plugin Plugin - by El Forum - 11-25-2009, 03:44 AM
Install FusionChart on CI as plugin Plugin - by El Forum - 01-28-2010, 07:46 AM
Install FusionChart on CI as plugin Plugin - by El Forum - 01-28-2010, 08:31 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.