| 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="1016Advancedformatting.html">
|
|
|
8 |
<LINK REL="Next" HREF="10162Specifyingstartdayofweek.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="1016Advancedformatting.html">Previous</A>
|
|
|
26 |
<A HREF="10162Specifyingstartdayofweek.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H3><A NAME="10_16_1">10.16.1 Showing only part of the graph</A></H3>
|
|
|
29 |
<P> You can choose to only display a vertical slice of the overall Gantt
|
|
|
30 |
chart by explicitly specifying a date range with the method
|
|
|
31 |
GanttGraph::SetDateRange(). This will cap any bars to only be displayed
|
|
|
32 |
in between the start and end date given as parameters. For example
|
|
|
33 |
specifying<DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
|
|
|
34 |
$graph</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">
|
|
|
35 |
SetDateRange</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
|
|
|
36 |
"2001-12-20"</FONT><FONT color="#007700">,</FONT><FONT color="#DD0000">
|
|
|
37 |
"2002-01-20"</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB"></FONT>
|
|
|
38 |
</FONT></CODE></DIV></P>
|
|
|
39 |
<P> will show the part of the Gantt chart between the 20 Dec 2001 and 20
|
|
|
40 |
of January 2002. Please note that the format depends on the locale
|
|
|
41 |
setting.</P>
|
|
|
42 |
<HR NOSHADE>
|
|
|
43 |
<A HREF="toc.html">Contents</A>
|
|
|
44 |
<A HREF="1016Advancedformatting.html">Previous</A>
|
|
|
45 |
<A HREF="10162Specifyingstartdayofweek.html">Next</A>
|
|
|
46 |
</BODY>
|
|
|
47 |
</HTML>
|