63 lines
6.3 KiB
HTML
63 lines
6.3 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><style type="text/css">
|
||
|
<!--
|
||
|
A:link {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: none; color: #000000}
|
||
|
A:visited {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: none; color: #000000}
|
||
|
A:hover {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: underline; color: #FF0000}
|
||
|
A.no:link {font-family:inherit; font-size: inhreit;text-decoration: none; color: #000000}
|
||
|
A.no:visited {font-family:inherit; font-size: inherit;text-decoration: none; color: #000000}
|
||
|
A.no:hover {font-family:inherit; font-size: inherit;text-decoration: none; color: #000000}
|
||
|
th {font-family: helvetica, arial; color : black; font-size:90%; background : #b7c8b7; border-right:black solid 1pt; border-bottom:black solid 1pt;}
|
||
|
td {font-family: helvetica, arial; color : black; font-size:90%; background : white; border-right:black solid 1pt; border-bottom:black solid 1pt;}
|
||
|
|
||
|
//-->
|
||
|
</style></HEAD><hr><div style="padding-left:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;background-color:#deaa87;font-family:courier new;font-size:16pt;">Class <a class="no" name="_C_GROUPBARPLOT"><b>GroupBarPlot</b></a> Extends <a style="font-size:14pt;text-decoration:underline;"href="BarPlot.html#_C_BARPLOT " style="font-face:arial;font-weight:bold;">BarPlot </a></div>
|
||
|
<i>(Defined in: jpgraph_bar.php : 615)</i><br> <br><table cellspaceing=0 cellpadding=4 style="border:solid #303030 1px;"><tr><td align="center" style="background:lightgray;" > <a href="GroupBarPlot.html" style="font-family:arial;font-weight:bold;color:darkblue;">GroupBarPlot</a> </td><td align="center" style="background:lightgray;" > <a href="BarPlot.html" style="font-family:arial;font-weight:bold;color:darkblue;">BarPlot</a> </td></tr><tr><td valign=top> <a href="GroupBarPlot.html#_GROUPBARPLOT_GROUPBARPLOT">GroupBarPlot()</a> <br>
|
||
|
</td><td valign=top> <a href="BarPlot.html#_BARPLOT_ROTATEPATTERN">RotatePattern()</a> <br>
|
||
|
<a href="BarPlot.html#_BARPLOT_SETABSWIDTH">SetAbsWidth()</a> <br>
|
||
|
<a href="BarPlot.html#_BARPLOT_SETALIGN">SetAlign()</a> <br>
|
||
|
<a href="BarPlot.html#_BARPLOT_SETFILLCOLOR">SetFillColor()</a> <br>
|
||
|
<a href="BarPlot.html#_BARPLOT_SETFILLGRADIENT">SetFillGradient()</a> <br>
|
||
|
<a href="BarPlot.html#_BARPLOT_SETNOFILL">SetNoFill()</a> <br>
|
||
|
<a href="BarPlot.html#_BARPLOT_SETPATTERN">SetPattern()</a> <br>
|
||
|
<a href="BarPlot.html#_BARPLOT_SETSHADOW">SetShadow()</a> <br>
|
||
|
<a href="BarPlot.html#_BARPLOT_SETVALUEPOS">SetValuePos()</a> <br>
|
||
|
<a href="BarPlot.html#_BARPLOT_SETWIDTH">SetWidth()</a> <br>
|
||
|
<a href="BarPlot.html#_BARPLOT_SETYBASE">SetYBase()</a> <br>
|
||
|
<a href="BarPlot.html#_BARPLOT_SETYMIN">SetYMin()</a> <br>
|
||
|
<a href="BarPlot.html#_BARPLOT___CONSTRUCT">__construct()</a> <br>
|
||
|
</td></tr></table> <p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>A group bar plot has several bars side by side for each X-label. The group bar is constructed from any number of ordinary bar graphs.
|
||
|
|
||
|
For example:
|
||
|
<code>
|
||
|
$b1 = new BarPlot(...);
|
||
|
$b2 = new BarPlot(...);
|
||
|
|
||
|
$gb = new GroupBarPlot(array($b1,$b2));
|
||
|
...
|
||
|
$graph->Add($gb);
|
||
|
...
|
||
|
</code>
|
||
|
|
||
|
Each individual bar can be either a BarPlor or an AccBarPlot.
|
||
|
<p>
|
||
|
<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
|
||
|
<p> <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_GROUPBARPLOT_GROUPBARPLOT"><span style="color:#555555;">GroupBarPlot ::</span><br><b>GroupBarPlot</b>($plots)</a></div>
|
||
|
|
||
|
<span style='font-family:arial;font-size:95%;'><i>Create a new Group bar plot</i></span><p>
|
||
|
|
||
|
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
||
|
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
||
|
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
|
||
|
<span style="color: #0000BB">$plots</span>
|
||
|
</span>
|
||
|
|
||
|
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'> </td><td>Array of individual plots</td></tr>
|
||
|
</table>
|
||
|
|
||
|
<div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>Create a new Group bar plot from a number of BarPlot or AccBarPlot plots. <br>
|
||
|
<div style="font-weight:bold;font-family:arial;font-size:90%;">See also:</div><ul><li><a href="AccBarPlot.html#_ACCBARPLOT___CONSTRUCT">AccBarPlot::__construct()</a><li><a href="BarPlot.html#_BARPLOT___CONSTRUCT">BarPlot::__construct()</a></ul>
|
||
|
<div style="font-weight:bold;font-family:arial;font-size:90%;"><p>Example:</div><div style="padding:5px;border:dashed gray 1px;background-color:#f3f3f3;font-family:courier new;font-size:90%;font-weight:bold;"><b><span style="color: #000000">
|
||
|
<span style="color: #0000BB">$b1 </span><span style="color: #007700">= new </span><span style="color: #0000BB">BarPlot</span><span style="color: #007700">(...);
<br /></span><span style="color: #0000BB">$b2 </span><span style="color: #007700">= new </span><span style="color: #0000BB">BarPlot</span><span style="color: #007700">(...);
<br />
<br /></span><span style="color: #0000BB">$gb </span><span style="color: #007700">= new </span><span style="color: #0000BB">GroupBarPlot</span><span style="color: #007700">(array(</span><span style="color: #0000BB">$b1</span><span style="color: #007700">,</span><span style="color: #0000BB">$b2</span><span style="color: #007700">));
<br />...
<br /></span><span style="color: #0000BB">$graph</span><span style="color: #007700">-></span><span style="color: #0000BB">Add</span><span style="color: #007700">(</span><span style="color: #0000BB">$gb</span><span style="color: #007700">);</span><span style="color: #0000BB"></span>
|
||
|
</span>
|
||
|
</b></div><br>
|
||
|
<p> <hr> <p></html>
|