Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
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="106PositioningobjectsintheGanttplot.html">
8
<LINK REL="Next" HREF="1071Specifyingverticalposition.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="106PositioningobjectsintheGanttplot.html">Previous</A>
26
<A HREF="1071Specifyingverticalposition.html">Next</A>
27
<HR NOSHADE>
28
<H2><A NAME="10_7">10.7 Gantt bars</A></H2>
29
<P> The most common of all object in a Gantt chart is of course the
30
 activity bar (GanttBar()). In terms of formatting this object has a
31
 very large flexibility. The full signature for the GanttBar constructor
32
 is<DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
33
&nbsp;</FONT><FONT color="#007700">function&nbsp;</FONT><FONT color="#0000BB">
34
GanttBar</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">
35
$aVPos</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">$aTitle</FONT><FONT
36
color="#007700">,</FONT><FONT color="#0000BB">$aStart</FONT><FONT color="#007700">
37
,</FONT><FONT color="#0000BB">$aEnd</FONT><FONT color="#007700">,</FONT><FONT
38
color="#0000BB">$aCaption</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">
39
$aHeight</FONT><FONT color="#007700">)</FONT><FONT color="#0000BB"></FONT>
40
</FONT></CODE></DIV></P>
41
<P></P>
42
<P></P>
43
<TABLE border="0">
44
<TR><TD valign="top">
45
<!--span style=&quot;font-family:times;font-size:85%;font-weight:bold;&quot;-->
46
<CODE><FONT color="#000000"> <FONT color="#0000BB">&nbsp;$aVPos&nbsp;</FONT></FONT>
47
</CODE></TD><TD valign="top">&nbsp;</TD><TD>The vertical position for the
48
 bar, [0..n]</TD></TR>
49
<TR><TD valign="top">
50
<!--span style=&quot;font-family:times;font-size:85%;font-weight:bold;&quot;-->
51
<CODE><FONT color="#000000"> <FONT color="#0000BB">&nbsp;$aTitle&nbsp;</FONT></FONT>
52
</CODE></TD><TD valign="top">&nbsp;</TD><TD>Title for the activity</TD></TR>
53
<TR><TD valign="top">
54
<!--span style=&quot;font-family:times;font-size:85%;font-weight:bold;&quot;-->
55
<CODE><FONT color="#000000"> <FONT color="#0000BB">&nbsp;$aStart&nbsp;</FONT></FONT>
56
</CODE></TD><TD valign="top">&nbsp;</TD><TD>Start date for the activity given
57
 as string, e.g &quot;2001-09-22&quot;</TD></TR>
58
<TR><TD valign="top">
59
<!--span style=&quot;font-family:times;font-size:85%;font-weight:bold;&quot;-->
60
<CODE><FONT color="#000000"> <FONT color="#0000BB">&nbsp;$aEnd&nbsp;</FONT></FONT></CODE>
61
</TD><TD valign="top">&nbsp;</TD><TD>End date for activity given as<B> either</B>
62
 a date (a string) or as the duration (in days) of the activity, e.g
63
 both &quot;2001-10-15&quot; and 20.5 are valid inputs</TD></TR>
64
<TR><TD valign="top">
65
<!--span style=&quot;font-family:times;font-size:85%;font-weight:bold;&quot;-->
66
<CODE><FONT color="#000000"> <FONT color="#0000BB">&nbsp;$aCaption&nbsp;</FONT></FONT>
67
</CODE></TD><TD valign="top">&nbsp;</TD><TD>Text string (caption) to appear
68
 at the end (right side) of the bar</TD></TR>
69
<TR><TD valign="top">
70
<!--span style=&quot;font-family:times;font-size:85%;font-weight:bold;&quot;-->
71
<CODE><FONT color="#000000"> <FONT color="#0000BB">&nbsp;$aHeight&nbsp;</FONT></FONT>
72
</CODE></TD><TD valign="top">&nbsp;</TD><TD>Height of bar given as<B> either</B>
73
 a value in range [0,1] in which case this is interpretated as what
74
 fraction of the vertical position should the bar occupy. The height can
75
 also be given in absolute pixels [1..200]</TD></TR>
76
</TABLE>
77
<HR NOSHADE>
78
<A HREF="toc.html">Contents</A>
79
<A HREF="106PositioningobjectsintheGanttplot.html">Previous</A>
80
<A HREF="1071Specifyingverticalposition.html">Next</A>
81
</BODY>
82
</HTML>