GDDM-PGF V2R1.3 Application Programming Guide
|
Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF |
BOOK
Pie charts GDDM-PGF V2R1.3 Application Programming Guide SC33-0913-01 |
|
Pie charts are noticeably different from the previous chart types. They do not have any axes, and the data for a multicomponent pie chart is displayed differently from that of other multicomponent charts. This difference is illustrated in Figure 26, which shows two charts representing the same data, a multiple pie chart and a composite bar chart.
The calls and options that affect pie charts are listed below. The default options are shown first.
CHPIE Plots the pie chart
CHSET
'PERPIE'|'ABPIE' Percentage or absolute data
'NOVALUES'|'VALUES' Values on pie slices
'PIEKEY'|'SPIDER' Spider labels or legend
'SPISLICE'|'SPILABEL' Type of spider label if used
'NOPROPIE'|'PROPIE' Pie size proportional to total values
'FILL'|'INFILL'|'NOFILL' Shading method
'YVERTICAL'|'XVERTICAL' Orientation of multiple pies
CHPAT Specify shading-pattern table values
CHCOL Specify basic color table for shading
CHLC Specify line-color table
CHLT Specify line-type table
CHLW Specify line-width table
CHPCTL Specify explosion factor, tilt,
and thickness
CHPEXP Slices of the pie to be moved out
(exploded)
CHPIER Size reduction to fit multiple pies
CHNUM Number of pies to be plotted if multiple
calls are used
CHVATT Attributes of values on pies
These are the main calls that produced the two charts:
DCL Y_DATA(12) FLOAT DEC(6) INIT(10,12,18, /* 1st component */
20,29,26, /* 2nd component */
15,13,30, /* 3rd component */
10,22,21); /* 4th component */
CALL CHXLAB(3,6,'BARLEYWHEAT OATS ');
CALL CHKEY(4,7,'FRANCE ITALY BELGIUM SPAIN ');
CALL CHBAR(4,3,Y_DATA); /* Plot 4-component bar chart */
................
................
DCL Y_DAT2(12) FLOAT DEC(6) INIT(10,20,15,10, /* 1st component */
12,29,13,22, /* 2nd component */
18,26,30,21); /* 3rd component */
CALL CHXLAB(3,6,'BARLEYWHEAT OATS ');
CALL CHKEY(4,7,'FRANCE ITALY BELGIUM SPAIN ');
CALL CHPIE(3,4,Y_DAT2); /* Plot 3-component pie chart */
So, a component (or data group) is a different concept for a pie chart.
Up to now a component has meant "all the blue bits" (blue markers joined
with a blue line on a line graph, a blue layer on a surface chart, sets of
blue bars on a histogram or bar chart). Now a component means "one pie"
instead.
CHKEY still provides the text that explains the different colors and patterns used in the chart. CHXLAB provides the pie titles. Subtopics: |
Copyright IBM Corporation 1990, 2012 |