forked from halo-battle/game
Version 1.12
This commit is contained in:
parent
2a066a7498
commit
de31cd3e9a
1373 changed files with 156282 additions and 45238 deletions
37
onyx2/include/jpgraph/Examples/boxstockcsimex1.php
Normal file
37
onyx2/include/jpgraph/Examples/boxstockcsimex1.php
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
// Example of a stock chart
|
||||
include ("../jpgraph.php");
|
||||
include ("../jpgraph_stock.php");
|
||||
|
||||
// Data must be in the format : open,close,min,max,median
|
||||
$datay = array(
|
||||
34,42,27,45,36,
|
||||
55,25,14,59,40,
|
||||
15,40,12,47,23,
|
||||
62,38,25,65,57,
|
||||
38,49,32,64,45);
|
||||
|
||||
// Setup a simple graph
|
||||
$graph = new Graph(300,200);
|
||||
$graph->SetScale("textlin");
|
||||
$graph->SetMarginColor('lightblue');
|
||||
$graph->title->Set('Box Stock chart example');
|
||||
|
||||
// Create a new stock plot
|
||||
$p1 = new BoxPlot($datay);
|
||||
|
||||
// Setup URL target for image map
|
||||
$p1->SetCSIMTargets(array('#1','#2','#3','#4','#5'));
|
||||
|
||||
// Width of the bars (in pixels)
|
||||
$p1->SetWidth(9);
|
||||
|
||||
//$p1->SetCenter();
|
||||
// Uncomment the following line to hide the horizontal end lines
|
||||
//$p1->HideEndLines();
|
||||
|
||||
// Add the plot to the graph and send it back to the browser
|
||||
$graph->Add($p1);
|
||||
$graph->StrokeCSIM();
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue