GDDM-PGF V2R1.3 Application Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF | BOOK


Setting the bar-chart gap, using call CHGAP

GDDM-PGF V2R1.3 Application Programming Guide
SC33-0913-01



For a simple bar chart, the gaps between bars are 0.5 times as wide as the bars themselves. If the chart has a numeric x axis and the bars are not evenly spaced, they are drawn so that the smallest gap is 0.5 times the bar width.

The ratio can be adjusted:


     CALL CHGAP(1.5);                   /* Make the bar gaps 1.5     */
                                        /* times as wide as the bars */

This ratio also applies to composite bar charts or floating bar charts.

Multiple bar charts are more complicated, because there are two different gaps to consider. CHGAP now specifies the ratio of gap to bar within a group of bars. Another call determines the gaps between groups of bars:


     CALL CHGGAP(3.5);        /* Make the gap between groups of bars */
                              /* 3.5 times as wide as a single bar   */

The default value for the ratio is 2.0 times the bar width.

If bars or groups of bars drawn with a CHBARX call are not evenly distributed along the x axis, in all cases "gap" means the smallest gap.

You can make bars overlap by specifying a negative gap.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012