function mychart() { //$this->load->libraries('fusion_pi'); $arrData = array(); $FC = new FusionCharts("Column3D", "720", "400"); /*$arrData = array( 500, 269, 254, 895, 633); foreach( $arrData as $i=>$data ){ $FC->addChartData( $data ); } */ //$sql="select count(distinct(nama_spb)) as nama_spb,month(tgl_spb) as bln from spb group by concat(month(tgl_spb),year(tgl_spb))"; //echo $sql; $FC->setDataURL("graph.xml"); $strParam = "numberSuffix=; formatNumberScale=0; decimalPrecision=0; xAxisName=Bulan; animation=1"; $FC->setChartParams($strParam); $FC->setChartMessage("ChartNoDataText=Chart Data not provided; PBarLoadingText=Please Wait.The chart is loading..."); return $FC->renderChart(false, false); }