All pastes #260683 Raw Edit

Mine

public text v1 · immutable
#260683 ·published 2006-11-28 16:37 UTC
rendered paste body
<?php
//error_reporting(E_ALL^E_NOTICE);
require_once '/var/www/html/asterisk-stat-v2/jpgraph_lib/jpgraph.php';
require_once '/var/www/html/asterisk-stat-v2/jpgraph_lib/jpgraph_bar.php';
/*
$xdata = array('4360','4361','4362','4363','4364','4365','4366','4367','4368','4369');
$ydata = array('1','2','3','4','5','6','7','8','9');

//setup the graph
$graph = new Graph(800, 600, 'auto');
$graph->img->SetMargin(80,60,60,80);
$graph->SetScale('textlin');
$graph->SetColor('white');
$graph->SetMarginColor('navy');
$graph->SetShadow();
$graph->SetFrame(true, 'blue');

//setup the graph title
$graph->title->Set('Help Desk Productivity Graph');
$graph->title->SetColor('white');
$graph->title->SetFont(FF_VERDANA, FS_BOLD, 14);

//setup X axis
$graph->xaxis->title->Set('Agents');
$graph->xaxis->title->SetColor('yellow');
$graph->xaxis->title->SetFont(FF_VERDANA, FS_BOLD, 15);
$graph->xaxis->SetTickLabels($xdata);
$graph->xaxis->SetColor('silver', 'orange');
$graph->xaxis->SetFont(FF_VERDANA, FS_NORMAL, 8);
$graph->xaxis->HideTicks();

//setup the y axis
$graph->yaxis->title->Set('Number of Calls Taken');
$graph->yaxis->title->SetColor('yellow');
$graph->yaxis->title->SetFont(FF_VERDANA, FS_BOLD, 15);
$graph->yaxis->SetColor('silver','orange');
$graph->yaxis->SetFont(FF_VERDANA, FS_NORMAL, 8);
$graph->yaxis->HideTicks();

//create the bar graph plot
$bplot = new BarPlot($ydata);
$bplot->SetWidth(0.75);
$scol = array(255, 51, 204);
$ecol = array(204, 0, 102);
$bplot->SetFillGradient($scol, $ecol, GRAD_VER);

//Finishing
$graph->Add($bplot);
$graph->Stroke();
*/
?>