Class BoxPlot Extends StockPlot
(Defined in: jpgraph_stock.php : 173)

BoxPlot | StockPlot
SetMedianColor() __construct() | HideEndLines() SetColor() SetWidth() __construct()

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

BoxPlot ::
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');

BoxPlot ::
__construct($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::__construct()

Example:

$bplot = new BoxPlot($ydata);