<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Gantt charts</title><link rel="stylesheet" type="text/css" href="manual.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.0"><link rel="home" href="index.html" title="JpGraph Manual"><link rel="up" href="ch16.html" title="Chapter 16. Non-Linear graph types"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Gantt charts</th></tr><tr><td width="20%" align="left"> </td><th width="60%" align="center">Chapter 16. Non-Linear graph types</th><td width="20%" align="right"> </td></tr></table><hr></div><div class="sect1" title="Gantt charts"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sec.gantt-charts"></a>Gantt charts</h2></div></div></div>
<p>Gantt charts are used to give an easy overview of the extension in time of one or several
activities (possible grouped). In addition the gantt chart can show an ordinal relation
between one or several activities such as "<span class="italic">activity A needs to be
finished before activity B can start</span>". </p>
<p>The shape of each activity can also be adjusted as well as color and size. Some of the
capabilities of the Gantt module in the library are listed below.</p>
<p>
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
<p><span class="bold"><strong>Overall gantt graph features</strong></span></p>
<p>
</p><div class="itemizedlist"><ul class="itemizedlist" type="circle"><li class="listitem">
<p>Visualization of constraints between activities, start-to-start,
start-to-end, end-to-start and end-to-end</p>
</li><li class="listitem">
<p>Unlimited number of activities (up to memory and time constrains
of PHP)</p>
</li><li class="listitem">
<p>Full support for independent CSIM for both labels and activity
bars</p>
</li><li class="listitem">
<p>Support for visualization of grouped activities</p>
</li><li class="listitem">
<p>Gantt charts can be automatically sized according to the number of
bars and scale used. </p>
</li><li class="listitem">
<p>Supports title and subtitle with user specified font, size and
color</p>
</li><li class="listitem">
<p>Supports vertical marker lines with text</p>
</li><li class="listitem">
<p>Full support for CSIM (or drill down graphs)</p>
</li><li class="listitem">
<p>Alternate row colors</p>
</li></ul></div><p>
</p>
</li><li class="listitem">
<p><span class="bold"><strong>Scale features</strong></span></p>
<p>
</p><div class="itemizedlist"><ul class="itemizedlist" type="circle"><li class="listitem">
<p>Both automatic and fully automatic scale</p>
</li><li class="listitem">
<p>Flexible scale with options to display up to 6 lines of scale
headers (year,month,week,day,hour,minute)</p>
</li><li class="listitem">
<p>Supports platform independent Week number calculation according to
ISO:8601</p>
</li><li class="listitem">
<p>Scales grids are intelligent not to overwrite smaller resolution
scales</p>
</li><li class="listitem">
<p>Scale headers can be localized</p>
</li><li class="listitem">
<p>Full user configurable scales</p>
</li><li class="listitem">
<p>Each scale header is configurable in terms of font, size, color,
background, grid lines etc.</p>
</li></ul></div><p>
</p>
</li><li class="listitem">
<p><span class="bold"><strong>Activity bars</strong></span></p>
<p>
</p><div class="itemizedlist"><ul class="itemizedlist" type="circle"><li class="listitem">
<p>can have multiple patterns and colors</p>
</li><li class="listitem">
<p>can have progress indicators</p>
</li><li class="listitem">
<p>can have drop shadow</p>
</li><li class="listitem">
<p>titles can have individual fonts, colors and backgrounds</p>
</li><li class="listitem">
<p>can have captions</p>
</li><li class="listitem">
<p>can have specified left- and right end markers</p>
</li><li class="listitem">
<p>heights can be specified in absolute pixels or in percent of the
activity line width</p>
</li></ul></div><p>
</p>
</li><li class="listitem">
<p><span class="bold"><strong>Milestones</strong></span></p>
<p>
</p><div class="itemizedlist"><ul class="itemizedlist" type="circle"><li class="listitem">
<p>can have user selectable shape and color</p>
</li><li class="listitem">
<p>titles can have individual fonts, colors and backgrounds</p>
</li><li class="listitem">
<p>can have captions</p>
</li></ul></div><p>
</p>
</li></ul></div><p>
</p>
<p>An example of a small Gantt chart is shown in <a class="xref" href="ch16s04.html#fig.ganttmonthyearex2" title="Figure 16.53. A typical small Gantt chart (ganttmonthyearex2.php)">Figure 16.53. A typical small Gantt chart <code class="uri"><a class="uri" href="example_src/ganttmonthyearex2.html" target="_top">(<code class="filename">ganttmonthyearex2.php</code>)</a></code> </a></p>
<p>
</p><div class="figure"><a name="fig.ganttmonthyearex2"></a><p class="title"><b>Figure 16.53. A typical small Gantt chart <code class="uri"><a class="uri" href="example_src/ganttmonthyearex2.html" target="_top">(<code class="filename">ganttmonthyearex2.php</code>)</a></code> </b></p><div class="figure-contents"> <span class="inlinemediaobject"><img src="images/ganttmonthyearex2.png" alt="A typical small Gantt chart (ganttmonthyearex2.php)"></span> </div></div><p><br class="figure-break">
</p>
<p>The remainder of this section will be used to discuss most of the formatting options for
Gantt charts.</p>
<div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3>
<p>There is one restrictions of the date scale and that is that it cannot have any
"holes" the dates must be continues.</p>
</div>
<div class="sect2" title="The structure of a Gantt chart"><div class="titlepage"><di
- 1
- 2
前往页