Hacked By AnonymousFox

Current Path : C:/AppServ/www/new_msd2/webengine/system/jpgraph/
Upload File :
Current File : C:/AppServ/www/new_msd2/webengine/system/jpgraph/graph_bar1.php

<?
#####################################################################

if(strlen($value)>0) {
	$datay=explode(",",$value);
	$datax=explode(",",$label);
} else {
	$datax=array("");
	$datay=array(0);
}
if(strlen($valueformat)==0) {
	$valueformat="d";
}

#####################################################################

include ("jpgraph.php");
include ("jpgraph_bar.php");

// Setup the graph. 
$graph = new Graph(400,200,"auto");	
$graph->SetScale("textlin");
$graph->img->SetMargin(35,15,30,30);
$graph->SetMarginColor("white");
$graph->xaxis->SetFont(FF_FONT1);
$graph->xaxis->SetTickLabels($datax);
$graph->yaxis->SetFont(FF_FONT1);
$graph->ygrid->SetFill(true,'#F0F0F0@0.5','#FEFEFE@0.5');

// Create the bar pot
$bplot = new BarPlot($datay);
$bplot->SetWidth(0.6);
$bplot->value->Show();
$bplot->value->SetFormat("%".$valueformat);
$bplot->value->SetColor("black","navy");
$bplot->SetFillGradient("navy","lightsteelblue",GRAD_MIDVER);
$bplot->SetColor("navy");
$graph->Add($bplot);

// Finally send the graph to the browser
$graph->Stroke();

#####################################################################
?>

Hacked By AnonymousFox1.0, Coded By AnonymousFox