Administration and Technical Information - Gantt Charts
From DotProjectWiki
Contents |
Gantt Charts are generated in dotProject using the third party product jpgraph - for details refer to: http://www.aditus.nu/jpgraph/
1 Turning Off Gantt Charts
There is currently no configuration option to do this, but you can edit your ./includes/config.php
Change the line...
$dPconfig['enable_gantt_charts'] = true;
to
$dPconfig['enable_gantt_charts'] = false;
2 Change the Date Format in the Gantt Chart
At present, the date format in the Gantt chart is hardcoded.
This is a hard coded value in /dotproject/lib/jpgraph/src/jpgraph_gantt.php at line 1017
$txt = date("j/n",$week);
Change to...
$txt = date("n/j",$week);
and it will reverse the date in the chart to mm/dd.
3 Gantt Charts and php5
The good people over on jpgraph http://www.aditus.nu/jpgraph/ have released two different versions of their product to support PHP4 and PHP5. dotProject 2.x is delivered with the PHP4 compatible libraries. If you are experiencing difficulties it may help to update your libraries to the PHP5 compatible ones from jpgraph.
