| Server IP : 104.21.80.248 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/www/myschool/triamudom/check/webadmin/S_Graph/jpgraph/Examples/ |
Upload File : |
<?php // content="text/plain; charset=utf-8"
require_once 'jpgraph/jpgraph.php';
require_once 'jpgraph/jpgraph_line.php';
require_once 'jpgraph/jpgraph_plotmark.inc.php';
require_once 'jpgraph/jpgraph_scatter.php';
require_once 'ccbpgraph.class.php';
$graph = new CCBPGraph(600,400);
$graph->SetTitle('Buffer penetration','(history added)');
$graph->SetColorMap(1);
// Two "fake tasks with hostory
$datax=array(75,83); $datay=array(110,64);
$datax1 = array(33,50,67,83); $datay1 = array(86,76,80,64);
$datax2 = array(18,47,58,75); $datay2 = array(80,97,105,110);
$sp = new ScatterPlot($datay,$datax);
$sp->mark->SetType(MARK_DIAMOND);
$sp->mark->SetFillColor('white');
$sp->mark->SetSize(12);
$sp_hist = array();
$sp_hist[0] = new LinePlot($datay1,$datax1);
$sp_hist[0]->SetWeight(1);
$sp_hist[0]->SetColor('white');
$sp_hist[1] = new LinePlot($datay2,$datax2);
$sp_hist[1]->SetWeight(1);
$sp_hist[1]->SetColor('white');
$graph->Add($sp_hist);
$graph->Add($sp);
$graph->Stroke();
?>