The GANTT Procedure

Example 6.5: Using the COMPRESS Option

In the previous example, PROC GANTT produced two pages of output since the chart would not fit on a single page. One way to ensure that the entire chart fits on a single page in graphics mode is to adjust the values of HPOS and VPOS accordingly. An easier way that is independent of the values of HPOS and VPOS is to specify the COMPRESS option in the CHART statement. Output 6.5.1 shows the result of adding the COMPRESS option to the CHART statement in Example 6.4. The PCOMPRESS option would have a similar effect but would maintain the aspect ratio as well. Some other options that can be used to control the number of pages generated are the HPAGES= and VPAGES= options.

  
    title 'Gantt Example 5'; 
    title2 'Using the COMPRESS Option'; 
  
    * plot the schedule on one page; 
  
    proc gantt; 
       chart target / dur=days cmile=cyan 
                      ctext=blue caxis=cyan 
                      cframe=ligr compress; 
       id task; 
       run;
 

Output 6.5.1: Using the COMPRESS Option
ga05.gif (15197 bytes)

Previous Page | Next Page | Top of Page