| 1 |
lars |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
|
2 |
<HTML>
|
|
|
3 |
<HEAD>
|
|
|
4 |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
|
|
5 |
<LINK REL="Start" HREF="index.html">
|
|
|
6 |
<LINK REL="Contents" HREF="toc.html">
|
|
|
7 |
<LINK REL="Prev" HREF="911Simpleradarplots.html">
|
|
|
8 |
<LINK REL="Next" HREF="913Addinggridlinetotheradarplot.html">
|
|
|
9 |
<STYLE TYPE="text/css"><!--
|
|
|
10 |
BODY { font-family: serif }
|
|
|
11 |
H1 { font-family: sans-serif }
|
|
|
12 |
H2 { font-family: sans-serif }
|
|
|
13 |
H3 { font-family: sans-serif }
|
|
|
14 |
H4 { font-family: sans-serif }
|
|
|
15 |
H5 { font-family: sans-serif }
|
|
|
16 |
H6 { font-family: sans-serif }
|
|
|
17 |
SUB { font-size: smaller }
|
|
|
18 |
SUP { font-size: smaller }
|
|
|
19 |
PRE { font-family: monospace }
|
|
|
20 |
A { text-decoration: none }
|
|
|
21 |
--></STYLE>
|
|
|
22 |
</HEAD>
|
|
|
23 |
<BODY>
|
|
|
24 |
<A HREF="toc.html">Contents</A>
|
|
|
25 |
<A HREF="911Simpleradarplots.html">Previous</A>
|
|
|
26 |
<A HREF="913Addinggridlinetotheradarplot.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H3><A NAME="9_1_2">9.1.2 Specifying titles for the axis and legends for
|
|
|
29 |
the plots</A></H3>
|
|
|
30 |
<P> We normally would like something more meaningful as description of
|
|
|
31 |
each axis than it's number. Specifying the titles are accomplished
|
|
|
32 |
through the use of the method SetTitles() of the graph. Let's say that
|
|
|
33 |
each axis corresponds to a month. We could then use the code<DIV class="phpscript">
|
|
|
34 |
<CODE><FONT color="#000000"> <FONT color="#0000BB"> $titles </FONT><FONT color="#007700">
|
|
|
35 |
= </FONT><FONT color="#0000BB">$gDateLocale</FONT><FONT color="#007700">
|
|
|
36 |
-></FONT><FONT color="#0000BB">GetShortMonth</FONT><FONT color="#007700">
|
|
|
37 |
();
|
|
|
38 |
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-></FONT><FONT
|
|
|
39 |
color="#0000BB">SetTitles</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">
|
|
|
40 |
$titles</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB"></FONT>
|
|
|
41 |
</FONT></CODE></DIV></P>
|
|
|
42 |
<P> As you can see the way radar plot is constructed will assign the
|
|
|
43 |
titles (and plot points) in a counter-clockwise direction. If you want
|
|
|
44 |
them in clock-wise order you will have to inverse your input data array
|
|
|
45 |
as well as the title array.</P>
|
|
|
46 |
<P> To specify a legend you (as with the other plot) make use of the <A href="../ref/SpiderPlot.html#_SPIDERPLOT_SETLEGEND">
|
|
|
47 |
SetLegend();</A> method on each radar plot.</P>
|
|
|
48 |
<HR NOSHADE>
|
|
|
49 |
<A HREF="toc.html">Contents</A>
|
|
|
50 |
<A HREF="911Simpleradarplots.html">Previous</A>
|
|
|
51 |
<A HREF="913Addinggridlinetotheradarplot.html">Next</A>
|
|
|
52 |
</BODY>
|
|
|
53 |
</HTML>
|