Contents Previous Next

### 10.12.6 Adjusting the margins with auto-sizing

As of version 1.17 it is possible to use Graph::SetMargin() to specify the margin for a Gantt graph even when the vertical height is determined automatically. For example to generate a graph with no left, right or bottom margin the following lines would be needed
`$graph = new GanttGraph (500);
$graph->SetMargin( 0,0,30 ,0);`

Contents Previous Next