(Defined in: jpgraph_bar.php : 706)
Class usage and Overview
Accumulated bar plot.
Used to create bars where the data series are stacked on top of each other.
Features:
- Can be combined with Image maps for each series.
- Values for each series can be displayed when the pointer is hovering over the corresponding part of the bar
- Unlimited number of series
Examples:
See also related classes:
BarPlot, GroupBarPlot and AccLinePlot
Class Methods
Return the maximum value of the bars
Description:
Return the maximum value of the bars
list($xmin,$ymin) = $accbar->Max();
Return minimum data values for the bars
Description:
Return minimum data values for the bars
list($xmin,$ymin) = $accbar->Min();
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:
$b1 = new BarPlot($y1data);
$b2 = new BarPlot($y2data);
$accbar = new AccBarPlot(array($b1,$b2));