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="9123Modifyingtheboxaroundtheplot.html">
8
<LINK REL="Next" HREF="9125AddingiconstoGanttgraphs.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="9123Modifyingtheboxaroundtheplot.html">Previous</A>
26
<A HREF="9125AddingiconstoGanttgraphs.html">Next</A>
27
<HR NOSHADE>
28
<H3><A NAME="9_12_4">9.12.4 Horizontal grids and alternating line colors</A>
29
</H3>
30
<P> In order to make large charts easier to read it is possible to
31
 specify alternating an horizontal grid and optional alternating line
32
 colors in the background for Gantt charts. The horizontal grid is
33
 accessed through the<I> Graph::hgrid</I> property and the line (used in
34
 the grid) is accessed through the<I> Graph::hgrid::line</I>
35
 sub-property</P>
36
<P> In order to specify the alternating line colors the<I>
37
 SetRowFillColor()</I> method is used. For example, to use alternating
38
 blue background with blue grid line the following lines would have to
39
 be added to the graph script<DIV class="phpscript"><CODE><FONT color="#000000">
40
 <FONT color="#0000BB">&nbsp;</FONT><FONT color="#FF8000">
41
//&nbsp;Setup&nbsp;a&nbsp;horizontal&nbsp;grid
42
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT
43
color="#0000BB">hgrid</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
44
Show</FONT><FONT color="#007700">();
45
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT
46
color="#0000BB">hgrid</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
47
line</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">SetColor</FONT><FONT
48
color="#007700">(</FONT><FONT color="#DD0000">'lightblue'</FONT><FONT color="#007700">
49
);
50
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT
51
color="#0000BB">hgrid</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
52
SetRowFillColor</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
53
'darkblue@0.9'</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB">
54
</FONT></FONT></CODE></DIV></P>
55
<P> Below is an example of a Gantt graph using this formatting<DIV class="example">
56
<BR> <A href="exframes/frame_gantthgridex1.html" target="blank"><IMG border="0"
57
HEIGHT="253"       src="img/img/img/img/img/img/gantthgridex1.png" WIDTH="500"></A>
58
<BR><B>Figure 169:</B> Adding a horizontal grid to the graph <A href="exframes/frame_gantthgridex1.html"
59
target="blank">[src]</A>&nbsp;
60
<P></P>
61
</DIV></P>
62
<P></P>
63
<HR NOSHADE>
64
<A HREF="toc.html">Contents</A>
65
<A HREF="9123Modifyingtheboxaroundtheplot.html">Previous</A>
66
<A HREF="9125AddingiconstoGanttgraphs.html">Next</A>
67
</BODY>
68
</HTML>