Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
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_RADARGRAPH"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>RadarGraph</b> EXTENDS <a href="Graph .html#_C_GRAPH " style="font-face:arial;font-weight:bold;">Graph </a></div>
9
<i>(Defined in: jpgraph_radar.php : 434)</i><table border=1><tr><td>&nbsp;<a href="RadarGraph.html" style="font-family:arial;font-weight:bold;color:darkblue;">RadarGraph</a>&nbsp;</td><td>&nbsp;<a href="Graph .html" style="font-family:arial;font-weight:bold;color:darkblue;">Graph </a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="RadarGraph.html#_RADARGRAPH_ADD">Add()</a>&nbsp;<br>
10
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_HIDETICKMARKS">HideTickMarks()</a>&nbsp;<br>
11
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_RADARGRAPH">RadarGraph()</a>&nbsp;<br>
12
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_SETCENTER">SetCenter()</a>&nbsp;<br>
13
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_SETCOLOR">SetColor()</a>&nbsp;<br>
14
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_SETPLOTSIZE">SetPlotSize()</a>&nbsp;<br>
15
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_SETPOS">SetPos()</a>&nbsp;<br>
16
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_SETSCALE">SetScale()</a>&nbsp;<br>
17
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_SETSIZE">SetSize()</a>&nbsp;<br>
18
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_SETTICKDENSITY">SetTickDensity()</a>&nbsp;<br>
19
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_SETTITLES">SetTitles()</a>&nbsp;<br>
20
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_SHOWMINORTICKMARKS">ShowMinorTickmarks()</a>&nbsp;<br>
21
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_STROKE">Stroke()</a>&nbsp;<br>
22
&nbsp;<a href="RadarGraph.html#_RADARGRAPH_SUPRESSTICKMARKS">SupressTickMarks()</a>&nbsp;<br>
23
</td><td valign=top>&nbsp;</td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Spider graph. This graph type can only be used together with spider plots. <p> &nbsp;
24
<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
25
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_ADD"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
26
function&nbsp;Add(&amp;$splot)</font>
27
</b></div></a></span>
28
 
29
<span style='font-family:arial;font-size:90%;'><i>Add a spider plot to the spider graph</i></span><p>
30
 
31
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
32
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
33
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
34
&amp;$splot</font>
35
 
36
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Plot to add (instance of SpiderPlot)</td></tr>
37
</table>
38
 
39
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Add a spider plot to the spider graph&nbsp;<br>
40
 
41
<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">
42
$spidergraph-&gt;Add($spiderplot1);</font>
43
</span><br>
44
<p>
45
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_HIDETICKMARKS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
46
function&nbsp;HideTickMarks($aFlag)</font>
47
</b></div></a></span>
48
 
49
<span style='font-family:arial;font-size:90%;'><i>Hide tick marks on spider axis</i></span><p>
50
 
51
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
52
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
53
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
54
$aFlag</font>
55
 
56
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
57
true</font>
58
</td><td>True=Hide tick marks</td></tr>
59
</table>
60
 
61
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Hide tick marks on spider axis&nbsp;<br>
62
 
63
<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">
64
$spidergraph-&gt;HideTickMarks();
<br /></font>
65
</span><br>
66
<p>
67
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_RADARGRAPH"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
68
function&nbsp;RadarGraph($width,$height,$cachedName,$timeout,$inline)</font>
69
</b></div></a></span>
70
71
 
72
73
 
74
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
75
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
76
$width</font>
77
78
 
79
300</font>
80
</td><td>Imaghe width</td></tr>
81
82
 
83
$height</font>
84
85
 
86
200</font>
87
</td><td>Image Height</td></tr>
88
89
 
90
$cachedName</font>
91
92
 
93
""</font>
94
</td><td>Cache file name</td></tr>
95
96
 
97
$timeout</font>
98
99
 
100
0</font>
101
</td><td>Cache timout (in minutes)</td></tr>
102
103
 
104
$inline</font>
105
106
 
107
1</font>
108
</td><td>Inline image</td></tr>
109
</table>
110
111
 
112
&nbsp;<br>
113
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Graph.html#_GRAPH_GRAPH">Graph::Graph</a>
114
<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">
115
$radargraph&nbsp;=&nbsp;new&nbsp;RadarGraph(300,300);</font>
116
</span><br>
117
<p>
118
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_SETCENTER"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
119
function&nbsp;SetCenter($px,$py)</font>
120
</b></div></a></span>
121
122
 
123
124
 
125
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
126
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
127
$px</font>
128
129
 
130
131
 
132
$py</font>
133
134
 
135
0.5</font>
136
</td><td>Fraction of height</td></tr>
137
</table>
138
139
 
140
141
 
142
$spidergraph-&gt;SetCenter(0.6,&nbsp;0.5);</font>
143
</span><br>
144
<p>
145
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_SETCOLOR"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
146
function&nbsp;SetColor($c)</font>
147
</b></div></a></span>
148
149
 
150
151
 
152
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
153
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
154
$c</font>
155
156
 
157
</table>
158
159
 
160
161
 
162
$spidergraph-&gt;SetColor('lightyellow');
<br /></font>
163
</span><br>
164
<p>
165
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_SETPLOTSIZE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
166
function&nbsp;SetPlotSize($aSize)</font>
167
</b></div></a></span>
168
169
<span style='font-family:arial;font-size:90%;'><i>Specify size of spider graph</i></span><p>
170
 
171
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
172
 
173
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
174
$aSize</font>
175
176
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Fraction of image size</td></tr>
177
 
178
179
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>DEPRECATED<br>
180
 
181
<br>
182
Specify the length of the axis of the spider plot as fraction of the min(height,width)&nbsp;<br>
183
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="RadarGraph.html#_RADARGRAPH_SETCENTER">RadarGraph::SetCenter</a> and <a href="RadarGraph.html#_RADARGRAPH_SETSIZE">RadarGraph::SetSize</a>
184
<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">
185
$radargraph-&gt;SetPlotSize(0.7);
<br /></font>
186
</span><br>
187
<p>
188
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_SETPOS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
189
function&nbsp;SetPos($px,$py)</font>
190
</b></div></a></span>
191
192
<span style='font-family:arial;font-size:90%;'><i>Alias for Set Center. Specify position of the center of the graph</i></span><p>
193
194
 
195
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
196
 
197
$px</font>
198
199
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Fraction of width</td></tr>
200
201
 
202
$py</font>
203
 
204
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
205
0.5</font>
206
 
207
</table>
208
209
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Alias for SetCenter. Specify position for the center of the graph.&nbsp;<br>
210
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="RadarGraph.html#_RADARGRAPH_SETCENTER">RadarGraph::SetCenter</a>
211
 
212
$graph-&gt;SetPos(0.5,0.6);</font>
213
</span><br>
214
<p>
215
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_SETSCALE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
216
function&nbsp;SetScale($axtype,$ymin,$ymax)</font>
217
</b></div></a></span>
218
219
<span style='font-family:arial;font-size:90%;'><i>Specify manual scale for spider graph</i></span><p>
220
221
 
222
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
223
 
224
$axtype</font>
225
226
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Axis type</td></tr>
227
228
 
229
$ymin</font>
230
 
231
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
232
1</font>
233
 
234
235
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
236
$ymax</font>
237
 
238
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
239
1</font>
240
 
241
</table>
242
243
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify axis type and min/max value for the scale.&nbsp;<br>
244
245
 
246
$spidergraph-&gt;SetScale('lin',0,50);</font>
247
 
248
<p>
249
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_SETSIZE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
250
function&nbsp;SetSize($aSize)</font>
251
</b></div></a></span>
252
253
<span style='font-family:arial;font-size:90%;'><i>Specify the length of the axis</i></span><p>
254
255
 
256
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
257
 
258
$aSize</font>
259
260
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Fraction of image size</td></tr>
261
</table>
262
 
263
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>pecify the length of the axis of the spider plot as fraction of the min(height,width)&nbsp;<br>
264
265
 
266
$radargraph-&gt;SetPlotSize(0.7);</font>
267
 
268
<p>
269
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_SETTICKDENSITY"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
270
function&nbsp;SetTickDensity($densy)</font>
271
</b></div></a></span>
272
273
<span style='font-family:arial;font-size:90%;'><i>Specify tick density</i></span><p>
274
275
 
276
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
277
 
278
$densy</font>
279
280
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
281
TICKD_NORMAL</font>
282
 
283
</table>
284
285
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Tick density can be specified as
286
<ul>
287
 
288
<li>TICKD_NORMAL, Tick marks as normal
289
<li>TICKD_SPARSE, Tick marks sparse
290
<li>TICKD_VERYSPARSE, TIck marks very sparse
291
</ul>
292
&nbsp;<br>
293
294
<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">
295
$spidergraph-&gt;SetTickDensity(TICKD_VERYSPARSE);</font>
296
 
297
<p>
298
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_SETTITLES"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
299
function&nbsp;SetTitles($title)</font>
300
</b></div></a></span>
301
302
<span style='font-family:arial;font-size:90%;'><i>Specify titles for all the spider axis</i></span><p>
303
304
 
305
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
306
 
307
$title</font>
308
309
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Array of titles</td></tr>
310
</table>
311
 
312
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set the title for the axis in the spider graph. If no titles have been specified then they will be numbered from 1 to maximum number of axis.&nbsp;<br>
313
314
 
315
$spidergraph-&gt;SetTitles(array('Jan','Feb','March','Apr'));</font>
316
 
317
<p>
318
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_SHOWMINORTICKMARKS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
319
function&nbsp;ShowMinorTickmarks($aFlag)</font>
320
</b></div></a></span>
321
322
<span style='font-family:arial;font-size:90%;'><i>Show minor tick marks</i></span><p>
323
324
 
325
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
326
 
327
$aFlag</font>
328
329
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
330
true</font>
331
 
332
</table>
333
334
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>By default the minor tick marks are hidden. This method turns them on.&nbsp;<br>
335
336
 
337
$spidergraph-&gt;ShowMinorTickMArks();
<br /></font>
338
 
339
<p>
340
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_STROKE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
341
function&nbsp;Stroke($aStrokeFileName)</font>
342
</b></div></a></span>
343
344
<span style='font-family:arial;font-size:90%;'><i>Stroke the Spider graph</i></span><p>
345
346
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
347
 
348
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
349
 
350
351
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
352
""</font>
353
</td><td>Filename</td></tr>
354
 
355
356
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Stroke the spider graph and send it back to the browser or write it to a file if a filename have been specified.
357
358
This is normally the last method call in your script.&nbsp;<br>
359
 
360
<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">
361
 
362
</span><br>
363
<p>
364
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARGRAPH_SUPRESSTICKMARKS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
365
function&nbsp;SupressTickMarks($f)</font>
366
</b></div></a></span>
367
368
<span style='font-family:arial;font-size:90%;'><i>Suppress all tick marks on the spider axis</i></span><p>
369
370
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
371
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
372
 
373
$f</font>
374
 
375
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
376
true</font>
377
</td><td>True=Hide tick marks</td></tr>
378
</table>
379
 
380
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Suppress all tick marks on the spider axis&nbsp;<br>
381
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="RadarGraph.html#_RADARGRAPH_SHOWMINORTICKMARKS">RadarGraph::ShowMinorTickmarks</a>
382
<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">
383
$spidergraph-&gt;SupressTickMarks();
<br /></font>
384
 
385
<p> <hr> <p>