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_RADARPLOT"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>RadarPlot</b></div>
9
<i>(Defined in: jpgraph_radar.php : 314)</i><table border=1><tr><td>&nbsp;<a href="RadarPlot.html" style="font-family:arial;font-weight:bold;color:darkblue;">RadarPlot</a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="RadarPlot.html#_RADARPLOT_RADARPLOT">RadarPlot()</a>&nbsp;<br>
10
&nbsp;<a href="RadarPlot.html#_RADARPLOT_SETCOLOR">SetColor()</a>&nbsp;<br>
11
&nbsp;<a href="RadarPlot.html#_RADARPLOT_SETFILL">SetFill()</a>&nbsp;<br>
12
&nbsp;<a href="RadarPlot.html#_RADARPLOT_SETFILLCOLOR">SetFillColor()</a>&nbsp;<br>
13
&nbsp;<a href="RadarPlot.html#_RADARPLOT_SETLEGEND">SetLegend()</a>&nbsp;<br>
14
&nbsp;<a href="RadarPlot.html#_RADARPLOT_SETLINESTYLE">SetLineStyle()</a>&nbsp;<br>
15
&nbsp;<a href="RadarPlot.html#_RADARPLOT_SETLINEWEIGHT">SetLineWeight()</a>&nbsp;<br>
16
</td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Create a new spider plot.
17
 
18
A spider plot can only be added to a SpiderGraph <p> &nbsp;
19
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="SpiderGraph.html">SpiderGraph</a> <p> &nbsp;<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
20
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARPLOT_RADARPLOT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
21
function&nbsp;RadarPlot($data)</font>
22
</b></div></a></span>
23
 
24
<span style='font-family:arial;font-size:90%;'><i>Create a new Radar plot</i></span><p>
25
 
26
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
27
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
28
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
29
$data</font>
30
 
31
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Data array</td></tr>
32
</table>
33
 
34
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Creates a new radar plot&nbsp;<br>
35
 
36
<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">
37
$radar&nbsp;=&nbsp;new&nbsp;RadarPlot($data);</font>
38
</span><br>
39
<p>
40
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARPLOT_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">
41
function&nbsp;SetColor($aColor,$aFillColor)</font>
42
</b></div></a></span>
43
 
44
<span style='font-family:arial;font-size:90%;'><i>Specify color for the plot</i></span><p>
45
 
46
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
47
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
48
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
49
$aColor</font>
50
 
51
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Color for line</td></tr>
52
 
53
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
54
$aFillColor</font>
55
 
56
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
57
false</font>
58
</td><td>Fill color</td></tr>
59
</table>
60
 
61
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set the color for the plot. Note that you can also use the method SetFillColor() to specify the fill color. This non-orthogonality is in place to make the API be more flexible.
62
 
63
&nbsp;<br>
64
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="RadarPlot.html#_RADARPLOT_SETFILLCOLOR">RadarPlot::SetFillColor</a>
65
<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">
66
$spideplot-&gt;SetColor('darkred','lightblue');
<br /></font>
67
</span><br>
68
<p>
69
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARPLOT_SETFILL"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
70
function&nbsp;SetFill($f)</font>
71
</b></div></a></span>
72
73
 
74
75
 
76
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
77
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
78
$f</font>
79
80
 
81
true</font>
82
</td><td>True=Use fill color and fill plot</td></tr>
83
</table>
84
85
 
86
87
 
88
89
 
90
$spiderplot-&gt;SetFillColor('lightblue');
<br />
<br />//&nbsp;...&nbsp;some&nbsp;code
<br />
<br />//&nbsp;Turn&nbsp;off&nbsp;the&nbsp;fill
<br />if(&nbsp;$doNotFillSpiderPlot&nbsp;)
<br />&nbsp;&nbsp;&nbsp;&nbsp;$spiderplot-&gt;SetFill(false);
<br />
<br /></font>
91
</span><br>
92
<p>
93
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARPLOT_SETFILLCOLOR"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
94
function&nbsp;SetFillColor($aColor)</font>
95
</b></div></a></span>
96
97
<span style='font-family:arial;font-size:90%;'><i>Specify fill color for plot</i></span><p>
98
99
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
100
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
101
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
102
$aColor</font>
103
104
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Color</td></tr>
105
 
106
107
 
108
109
Note. You can also use SetColor() to specify both fill and line color.&nbsp;<br>
110
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="RadarPlot.html#_RADARPLOT_SETCOLOR">RadarPlot::SetColor</a>
111
<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">
112
 
113
</span><br>
114
<p>
115
 
116
function&nbsp;SetLegend($legend)</font>
117
 
118
119
<span style='font-family:arial;font-size:90%;'><i>Specify legend text for this plot</i></span><p>
120
121
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
122
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
123
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
124
$legend</font>
125
126
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Legend string</td></tr>
127
 
128
129
 
130
131
<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">
132
$spiderplot-&gt;SetLegend('Stress&nbsp;level');</font>
133
</span><br>
134
 
135
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARPLOT_SETLINESTYLE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
136
function&nbsp;SetLineStyle($aStyle)</font>
137
 
138
139
 
140
141
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
142
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
143
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
144
$aStyle</font>
145
146
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Line style</td></tr>
147
 
148
149
 
150
<ul>
151
<li>"solid"
152
<li>"dashed"
153
<li>"longdashed"
154
 
155
</ul>
156
&nbsp;<br>
157
 
158
<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">
159
$radarplot-&gt;SetLineStyle('dotted');</font>
160
</span><br>
161
<p>
162
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_RADARPLOT_SETLINEWEIGHT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
163
function&nbsp;SetLineWeight($w)</font>
164
</b></div></a></span>
165
166
 
167
168
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
169
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
170
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
171
$w</font>
172
173
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Line weight in pixels</td></tr>
174
 
175
176
 
177
178
<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">
179
$spiderplot-&gt;SetLineWeight(2);</font>
180
</span><br>
181