(Defined in: jpgraph_stock.php : 159) Class usage and Overview
Create a box plot. This is the same as a stock plot but with the added feature of a median line. For each X-value 5 Y values must be specified:
(open,close,min,max,median)
See also related classes:
StockPlot
Class Methods
function BoxPlot($datay,$datax)
Create a new Box plot
Argument | Default | Description |
$datay
| | Y-tuples |
$datax
|
false
| If specified, X-positions |
Description
Create a new Box plot. Each data point in a box plotconsists of 5 values; (open,close,min,max,median)
See also
StockPlot::StockPlot
$bplot = new BoxPlot($ydata);
function SetMedianColor($aPos,$aNeg)
Specify color for median line
Argument | Default | Description |
$aPos
| | Positive color |
$aNeg
| | Negative color |
Description
Specify color for median line.
$bplot->SetMedianColor('black','white');