| Server IP : 172.67.187.206 / Your IP : 172.71.28.156 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 : /Inetpub/www/myschool/triamudom/check/webadmin/S_Graph/jpgraph/Examples/ |
Upload File : |
<?php // content="text/plain; charset=utf-8"
// $Id: stockex2.php,v 1.1 2003/01/31 17:41:29 aditus Exp $
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_stock.php');
$datay = array(
34,42,27,45,
55,25,12,59,
38,49,32,64,
34,40,29,42,
40,29,22,45 );
// Setup basic graph
$graph = new Graph(300,200);
$graph->SetScale("textlin");
$graph->SetMarginColor('white');
$graph->SetFrame(false);
$graph->ygrid->SetFill(true,'#[email protected]','#[email protected]');
$graph->SetBox();
$graph->tabtitle->Set(' Week 34 ');
$graph->tabtitle->SetFont(FF_ARIAL,FS_NORMAL,12);
// Get week days in curent locale
$days = $gDateLocale->GetShortDay();
array_shift($days); // Start on monday
$graph->xaxis->SetTickLabels($days);
// Create stock plot
$p1 = new StockPlot($datay);
// Indent plot so first and last bar isn't on the edges
$p1->SetCenter();
// Add and stroke
$graph->Add($p1);
$graph->Stroke();
?>