CLASS AccBarPlot EXTENDS BarPlot (Defined in: jpgraph_bar.php : 529)

AccBarPlot | BarPlot | Plot
AccBarPlot() Max() Min() | BarPlot() SetAbsWidth() SetAlign() SetFillColor() SetFillGradient() SetNoFill() SetPattern() SetShadow() SetValuePos() SetWidth() SetYBase() SetYMin() | HideLegend() SetCenter() SetColor() SetCSIMTargets() SetLegend() SetLineWeight()

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

function AccBarPlot($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::BarPlot

Example

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

function Max()
Return the maximum value of the bars

Description
Return the maximum value of the bars

Example

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

function Min()
Return minimum data values for the bars

Description
Return minimum data values for the bars

Example

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