PABX da Simples IP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
948 B

<?php
require("jpgraph/jpgraph.php");
require("jpgraph/jpgraph_bar.php");
/*
* Array contem os dados da espera.
*/
$data = $_SESSION["SSabdAgrupaTempo"];
/*
* Labels para o gráfico.
*/
$arLabel = array('TE<=10', '10<TE<=20', '20<TE<=30', '30<TE<=60', '60<TE<=120', '120<TE<=180', '180<TE<=300', '300<TE');
/*
* Cria o gráfico.
*/
$graph = new Graph(960, 600);
$graph->SetScale("textint");
$graph->SetShadow();
$graph->SetMargin(40, 20, 40, 40);
$graph->title->Set('Chamadas Abandonadas por Tempo de Espera');
$graph->xaxis->SetTickLabels($arLabel);
$graph->legend->Pos(0.2, 0.90);
$graph->legend->SetColumns(1);
$graph->xaxis->title->Set($labelX);
$graph->yaxis->title->Set('Chamadas');
$barPlot1 = new BarPlot($data);
$barPlot1->SetLegend("Originadas(ORG/TMO)");
$barPlot1->SetFillColor("springgreen3");
$barPlot1->value->Show();
$barPlot1->value->SetFormat("%d");
$barPlot1->value->SetColor("springgreen3");
$graph->Stroke();
exit;