Class AccBarPlot Extends BarPlot
(Defined in: jpgraph_bar.php : 706)

AccBarPlot | BarPlot
Max() Min() __construct() | RotatePattern() SetAbsWidth() SetAlign() SetFillColor() SetFillGradient() SetNoFill() SetPattern() SetShadow() SetValuePos() SetWidth() SetYBase() SetYMin() __construct()

Class usage and Overview
Accumulated bar plot.
Used to create bars where the data series are stacked on top of each other.

Features:

1. Can be combined with Image maps for each series.
2. Values for each series can be displayed when the pointer is hovering over the corresponding part of the bar
3. Unlimited number of series

Examples:

- [TBC]

See also related classes:
BarPlot, GroupBarPlot and AccLinePlot

Class Methods

AccBarPlot ::
Max()
Return the maximum value of the bars

Description:
Return the maximum value of the bars

Example:

list($xmin,$ymin) = $accbar->Max();

AccBarPlot ::
Min()
Return minimum data values for the bars

Description:
Return minimum data values for the bars

Example:

list($xmin,$ymin) = $accbar->Min();

AccBarPlot ::
__construct($plots)
Construct a new accumulated bar graph

Argument | Default | Description
--- | --- | ---
$plots |  | Array of bar plots

Description:
Create a new accumulated bar plot based on the given array of ordinary bar plots.
See also:

- BarPlot::__construct()

Example:

$b1 = new BarPlot($y1data);
$b2 = new BarPlot($y2data);
$accbar = new AccBarPlot(array($b1,$b2));