| 1 |
lars |
1 |
<style type="text/css">
|
|
|
2 |
<!--
|
|
|
3 |
A:link {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}
|
|
|
4 |
A:visited {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}
|
|
|
5 |
A:hover {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: underline; color: #FF0000}
|
|
|
6 |
th {font-family: helvetica, arial; color : blue; font-size:85%; background : lightgrey; border-right:black solid 1pt; border-bottom:black solid 1pt;}
|
|
|
7 |
//-->
|
|
|
8 |
</style><hr><a name="_C_ACCLINEPLOT"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>AccLinePlot</b> EXTENDS <a href="Plot .html#_C_PLOT " style="font-face:arial;font-weight:bold;">Plot </a></div>
|
|
|
9 |
<i>(Defined in: jpgraph_line.php : 421)</i><table border=1><tr><td> <a href="AccLinePlot.html" style="font-family:arial;font-weight:bold;color:darkblue;">AccLinePlot</a> </td><td> <a href="Plot .html" style="font-family:arial;font-weight:bold;color:darkblue;">Plot </a> </td></tr><tr><td valign=top> <a href="AccLinePlot.html#_ACCLINEPLOT_ACCLINEPLOT">AccLinePlot()</a> <br>
|
|
|
10 |
<a href="AccLinePlot.html#_ACCLINEPLOT_MAX">Max()</a> <br>
|
|
|
11 |
<a href="AccLinePlot.html#_ACCLINEPLOT_MIN">Min()</a> <br>
|
|
|
12 |
<a href="AccLinePlot.html#_ACCLINEPLOT_SETINTERPOLATEMODE">SetInterpolateMode()</a> <br>
|
|
|
13 |
</td><td valign=top> </td></tr></table> <p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Accumulated bar plot. <br>
|
|
|
14 |
Used to create a line plot where each individual data point is the sum of the individual series data points.
|
|
|
15 |
<p>
|
|
|
16 |
Features:
|
|
|
17 |
<ol>
|
|
|
18 |
<li>Unlimited number of series
|
|
|
19 |
</ol>
|
|
|
20 |
<p> <p>
|
|
|
21 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="AccBarPlot.html">AccBarPlot</a> and <a href="LinePlot.html">LinePlot</a> <p> <hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
|
|
|
22 |
<p> <p> <span style='font-size:110%;'><a name="_ACCLINEPLOT_ACCLINEPLOT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
23 |
function AccLinePlot($plots)</font>
|
|
|
24 |
</b></div></a></span>
|
|
|
25 |
|
|
|
26 |
<span style='font-family:arial;font-size:90%;'><i>Constructor</i></span><p>
|
|
|
27 |
|
|
|
28 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
29 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
30 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
31 |
$plots</font>
|
|
|
32 |
|
|
|
33 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Array of line plots to use</td></tr>
|
|
|
34 |
</table>
|
|
|
35 |
|
|
|
36 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Creates a new accumulated line plot from a number of line plots. <br>
|
|
|
37 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="LinePlot.html#_LINEPLOT_LINEPLOT">LinePlot::LinePlot</a>
|
|
|
38 |
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
|
|
|
39 |
$line1 = new LinePlot($datay1);
<br />$line2 = new LinePlot($datay2);
<br />$aline = array($line1,$line2);
<br />$acclineplot = new AccLinePlot($aline);</font>
|
|
|
40 |
</span><br>
|
|
|
41 |
<p>
|
|
|
42 |
<p> <p> <span style='font-size:110%;'><a name="_ACCLINEPLOT_MAX"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
43 |
function Max()</font>
|
|
|
44 |
</b></div></a></span>
|
|
|
45 |
|
|
|
46 |
<span style='font-family:arial;font-size:90%;'><i>Return the max value of data points in plot.</i></span><p>
|
|
|
47 |
<br>
|
|
|
48 |
|
|
|
49 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Takes into account all series and returns the maximum Y and X values for all the data series. Used internally to determine the autoscaling. <br>
|
|
|
50 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Plot.html#_PLOT_MAX">Plot::Max</a>
|
|
|
51 |
|
|
|
52 |
list($xmax,$ymax) = $acclineplot->Max();</font>
|
|
|
53 |
</span><br>
|
|
|
54 |
<p>
|
|
|
55 |
<p> <p> <span style='font-size:110%;'><a name="_ACCLINEPLOT_MIN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
56 |
function Min()</font>
|
|
|
57 |
</b></div></a></span>
|
|
|
58 |
|
|
|
59 |
<span style='font-family:arial;font-size:90%;'><i>Return the min value of all data points in plot.</i></span><p>
|
|
|
60 |
<br>
|
|
|
61 |
|
|
|
62 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Takes into account all series and returns the minimum Y and X value. Used internally to determine autoscaling. <br>
|
|
|
63 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="BarPlot.html#_BARPLOT_MIN">BarPlot::Min</a> and <a href="Plot.html#_PLOT_MIN">Plot::Min</a>
|
|
|
64 |
|
|
|
65 |
list($xmin,$ymin) = $acclineplot->Min()
<br /></font>
|
|
|
66 |
</span><br>
|
|
|
67 |
<p>
|
|
|
68 |
<p> <p> <span style='font-size:110%;'><a name="_ACCLINEPLOT_SETINTERPOLATEMODE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
69 |
function SetInterpolateMode($aIntMode)</font>
|
|
|
70 |
</b></div></a></span>
|
|
|
71 |
|
|
|
72 |
<span style='font-family:arial;font-size:90%;'><i>Enable interpolate mode</i></span><p>
|
|
|
73 |
|
|
|
74 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
75 |
|
|
|
76 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>TRUE=Enable interpolation</td></tr>
|
|
|
80 |
</table>
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
This can be achieved by calculating a linear interpoaltion for the missing value(s). Calling this method will replace all '-' values with an interpolated value.
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
$accline->SetInterpolateMode()</font>
|
|
|
89 |
</span><br>
|
|
|
90 |
|