1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| class StatsController extends Oft_Controller_Action
{
public function indexAction (){
//$this->disableRendering();
$dateInBetween = array();
$SmsSum = array();
$smsSumGraph = array();
$queryparse = oci_parse($conn, $query);
oci_execute($queryparse);
while ($row_date = oci_fetch_array($queryparse,
OCI_ASSOC+OCI_RETURN_NULLS))
{
$smsSumGraph [$row_date['DATETO']]= $row_date['SMSSUM'];
}
$graph = new ezcGraphLineChart();
$graph->data['SMSSUM'] = new ezcGraphArrayDataSet($smsSumGraph);
$graph->rendeToOutput(500, 500);
$graph->renderer;
} |
Partager