CLASS BoxPlot EXTENDS StockPlot (Defined in: jpgraph_stock.php : 158)

BoxPlot | StockPlot
BoxPlot() SetMedianColor() |

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

Example

$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.

Example

$bplot->SetMedianColor('black','white');