| 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="93AsimpleGanttchart.html">
|
|
|
8 |
<LINK REL="Next" HREF="95CreatingaGanttChart.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="93AsimpleGanttchart.html">Previous</A>
|
|
|
26 |
<A HREF="95CreatingaGanttChart.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H2><A NAME="9_4">9.4 The structure of a Gantt chart</A></H2>
|
|
|
29 |
<P> A Gantt chart is made up of four distinct areas.</P>
|
|
|
30 |
<OL>
|
|
|
31 |
<LI>On the left side there is the activity title column.</LI>
|
|
|
32 |
<LI>On the top there is the scale headers (up to four headers may be
|
|
|
33 |
displayed)</LI>
|
|
|
34 |
<LI>The actual plot area where all the Gantt bars and markers go</LI>
|
|
|
35 |
<LI>The margin area, where for example the titles are shown</LI>
|
|
|
36 |
</OL>
|
|
|
37 |
<P> Since a Gantt chart inherits all the usual properties of a JpGraph
|
|
|
38 |
Graph() you have the access to the same method to formatting the image
|
|
|
39 |
as before. For example to have a shadow around the image you call
|
|
|
40 |
Graph::SetShadow() and to set the margin color you can use
|
|
|
41 |
Graph::SetMarginColor(). Please refer to the reference documentation
|
|
|
42 |
for a full list of supported features.</P>
|
|
|
43 |
<P> To create a Gantt chart you<STRONG> add</STRONG> objects to it. As
|
|
|
44 |
of this writing you may add the following object by the use of the
|
|
|
45 |
GanttChart::Add() method</P>
|
|
|
46 |
<UL>
|
|
|
47 |
<LI> Gantt bars (indicates the length of an activity)</LI>
|
|
|
48 |
<LI> Milestones, a single mark at a specific date</LI>
|
|
|
49 |
<LI> Vertical line, might be use to mark phases in projects</LI>
|
|
|
50 |
</UL>
|
|
|
51 |
<P> All these objects may be extensively modified in terms of
|
|
|
52 |
formatting. You can specify color (both fill- and frame color), size,
|
|
|
53 |
titles, style and patterns and so on. All these objects comes with (in
|
|
|
54 |
my mind) sensible default so you don't have to specify a lot of
|
|
|
55 |
parameters. But if you need a fine grain control or if you disagree
|
|
|
56 |
with my taste you<STRONG> can</STRONG>.</P>
|
|
|
57 |
<HR NOSHADE>
|
|
|
58 |
<A HREF="toc.html">Contents</A>
|
|
|
59 |
<A HREF="93AsimpleGanttchart.html">Previous</A>
|
|
|
60 |
<A HREF="95CreatingaGanttChart.html">Next</A>
|
|
|
61 |
</BODY>
|
|
|
62 |
</HTML>
|