Contents
Previous
Next
You create a new Gantt Chart with a call to GanttChart(). The
signature for GanttGraph is the same as for ordinary JpGraph graphs,
i.e
function
GanttGraph(
$aWidth,
$aHeight,
$aCachedName,
$aTimeOut,
$aInline)
The only real difference is that for GanttCharts you can specify one
or both of the dimension parameters (width and height) as -1 in which
case that dimension will be automatically sized determined by scale and
fonts chosen. The following examples shows some possible ways of
creating a new graph
- $graph=new GanttGraph()
The size of the graph will be determined automatically, no caching
will be used and the graph will be generated in-line.
- $graph=new GanttGraph(-1,-1,"auto")
The size of the graph will be determined automatically, caching
will be used (the name will be based on the script name), no timeout
will be used and the graph will be generated in-line
- $graph=new GanttGraph(450,-1,"auto",5)
Same as the previous entry but the width is fixed to 450 points and
the cached image will have a timeout of 5 min.
- $graph=new GanttGraph(-1,-1,"auto",5,false)
The image will not be generated in-line, only the cache will be
updated if it has timed out, otherwise nothing will happen.
Since GanttGraph() inherits all the methods (that make sense for
GanttGraph) from Graph you can specify shadow, color etc of the general
frame.
Contents
Previous
Next