Blame | Letzte Änderung | Log anzeigen | RSS feed
<style type="text/css"><!--A:link {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}A:visited {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}A:hover {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: underline; color: #FF0000}th {font-family: helvetica, arial; color : blue; font-size:85%; background : lightgrey; border-right:black solid 1pt; border-bottom:black solid 1pt;}//--></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><i>(Defined in: jpgraph_radar.php : 434)</i><table border=1><tr><td> <a href="RadarGraph.html" style="font-family:arial;font-weight:bold;color:darkblue;">RadarGraph</a> </td><td> <a href="Graph .html" style="font-family:arial;font-weight:bold;color:darkblue;">Graph </a> </td></tr><tr><td valign=top> <a href="RadarGraph.html#_RADARGRAPH_ADD">Add()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_HIDETICKMARKS">HideTickMarks()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_RADARGRAPH">RadarGraph()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_SETCENTER">SetCenter()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_SETCOLOR">SetColor()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_SETPLOTSIZE">SetPlotSize()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_SETPOS">SetPos()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_SETSCALE">SetScale()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_SETSIZE">SetSize()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_SETTICKDENSITY">SetTickDensity()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_SETTITLES">SetTitles()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_SHOWMINORTICKMARKS">ShowMinorTickmarks()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_STROKE">Stroke()</a> <br> <a href="RadarGraph.html#_RADARGRAPH_SUPRESSTICKMARKS">SupressTickMarks()</a> <br></td><td valign=top> </td></tr></table> <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> <hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p><p> <p> <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">function Add(&$splot)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Add a spider plot to the spider graph</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:90%;font-weight:bold;'><font color="#000000">&$splot</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Plot to add (instance of SpiderPlot)</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Add a spider plot to the spider graph <br><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">$spidergraph->Add($spiderplot1);</font></span><br><p><p> <p> <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">function HideTickMarks($aFlag)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Hide tick marks on spider axis</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:90%;font-weight:bold;'><font color="#000000">$aFlag</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">true</font></td><td>True=Hide tick marks</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Hide tick marks on spider axis <br><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">$spidergraph->HideTickMarks(); <br /></font></span><br><p><p> <p> <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">function RadarGraph($width,$height,$cachedName,$timeout,$inline)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Construct a new radar graph</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:90%;font-weight:bold;'><font color="#000000">$width</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">300</font></td><td>Imaghe width</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$height</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">200</font></td><td>Image Height</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$cachedName</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">""</font></td><td>Cache file name</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$timeout</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">0</font></td><td>Cache timout (in minutes)</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$inline</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">1</font></td><td>Inline image</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>See Graph::Graph(). <br> <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Graph.html#_GRAPH_GRAPH">Graph::Graph</a><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">$radargraph = new RadarGraph(300,300);</font></span><br><p><p> <p> <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">function SetCenter($px,$py)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Specify position for center of spider graph</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:90%;font-weight:bold;'><font color="#000000">$px</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Fraction of width</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$py</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">0.5</font></td><td>Fraction of height</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify the position for the center of the spider graph in fractions of the image width and height. <br><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">$spidergraph->SetCenter(0.6, 0.5);</font></span><br><p><p> <p> <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">function SetColor($c)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Set background color for graph</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:90%;font-weight:bold;'><font color="#000000">$c</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Color</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set background color for graph <br><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">$spidergraph->SetColor('lightyellow'); <br /></font></span><br><p><p> <p> <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">function SetPlotSize($aSize)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Specify size of spider graph</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:90%;font-weight:bold;'><font color="#000000">$aSize</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Fraction of image size</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>DEPRECATED<br>Use SetSize() instead<br>Specify the length of the axis of the spider plot as fraction of the min(height,width) <br> <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><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">$radargraph->SetPlotSize(0.7); <br /></font></span><br><p><p> <p> <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">function SetPos($px,$py)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Alias for Set Center. Specify position of the center of the graph</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:90%;font-weight:bold;'><font color="#000000">$px</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Fraction of width</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$py</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">0.5</font></td><td>Fraction of height</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Alias for SetCenter. Specify position for the center of the graph. <br> <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="RadarGraph.html#_RADARGRAPH_SETCENTER">RadarGraph::SetCenter</a><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">$graph->SetPos(0.5,0.6);</font></span><br><p><p> <p> <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">function SetScale($axtype,$ymin,$ymax)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Specify manual scale for spider graph</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:90%;font-weight:bold;'><font color="#000000">$axtype</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Axis type</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$ymin</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">1</font></td><td>Min Y-value</td></tr><tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">$ymax</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">1</font></td><td>Max Y-value</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify axis type and min/max value for the scale. <br><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">$spidergraph->SetScale('lin',0,50);</font></span><br><p><p> <p> <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">function SetSize($aSize)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Specify the length of the axis</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:90%;font-weight:bold;'><font color="#000000">$aSize</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Fraction of image size</td></tr></table><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) <br><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">$radargraph->SetPlotSize(0.7);</font></span><br><p><p> <p> <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">function SetTickDensity($densy)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Specify tick density</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:90%;font-weight:bold;'><font color="#000000">$densy</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">TICKD_NORMAL</font></td><td>Density</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Tick density can be specified as<ul><li>TICKD_DENSE, Tick marks close<li>TICKD_NORMAL, Tick marks as normal<li>TICKD_SPARSE, Tick marks sparse<li>TICKD_VERYSPARSE, TIck marks very sparse</ul> <br><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">$spidergraph->SetTickDensity(TICKD_VERYSPARSE);</font></span><br><p><p> <p> <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">function SetTitles($title)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Specify titles for all the spider axis</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:90%;font-weight:bold;'><font color="#000000">$title</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Array of titles</td></tr></table><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. <br><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">$spidergraph->SetTitles(array('Jan','Feb','March','Apr'));</font></span><br><p><p> <p> <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">function ShowMinorTickmarks($aFlag)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Show minor tick marks</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:90%;font-weight:bold;'><font color="#000000">$aFlag</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">true</font></td><td>True=Show minor tick marks</td></tr></table><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. <br><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">$spidergraph->ShowMinorTickMArks(); <br /></font></span><br><p><p> <p> <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">function Stroke($aStrokeFileName)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Stroke the Spider graph</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:90%;font-weight:bold;'><font color="#000000">$aStrokeFileName</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">""</font></td><td>Filename</td></tr></table><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.This is normally the last method call in your script. <br> <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Graph.html#_GRAPH_STROKE">Graph::Stroke</a><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">$spidergraph->Stroke(); <br /></font></span><br><p><p> <p> <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">function SupressTickMarks($f)</font></b></div></a></span><span style='font-family:arial;font-size:90%;'><i>Suppress all tick marks on the spider axis</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:90%;font-weight:bold;'><font color="#000000">$f</font></td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">true</font></td><td>True=Hide tick marks</td></tr></table><div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Suppress all tick marks on the spider axis <br> <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="RadarGraph.html#_RADARGRAPH_SHOWMINORTICKMARKS">RadarGraph::ShowMinorTickmarks</a><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">$spidergraph->SupressTickMarks(); <br /></font></span><br><p> <hr> <p>