graphics.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
_pg_chartpie
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The _pg_chartpie function displays a pie chart for the data
contained in the <values> array. Pie charts are formed from a
single series of data──there is no multiseries version of pie
charts as there is for other chart types.
The <explode> array must be dimensioned so that its length is
greater than or equal to the <n> argument. All entries in
<explode> are either 0 or 1. If an entry is 1, the corresponding
pie slice is displayed slightly removed from the rest of the pie.
For example, if the <explode> array is initialized as
short explode[5] = {0, 1, 0, 0, 0};
the pie slice corresponding to the second entry of the
<categories> array will be displayed "exploded" from the other
four slices.
Return Value
The _pg_chartpie function returns 0 if there were no errors. A
nonzero value indicates a failure.
-♦-