Pie Graphs

A pie graph is a graph in which data is represented as sections of one or more circles, making the circles look like sliced pies.

Standard use of a pie graph

Use pie graphs to show the following aspects of data:

Available varieties of pie graphs

The following varieties of pie graphs are available:

The following table shows the arrangements that are available for the different pie graph types.

Single Pie or Ring

Multiple Pie or Ring

Single pie: PIE

Multiple pie: PIE_MULTI

Single ring: RING

Multiple ring: RING_MULTI

Graph properties for pie graphs

The following properties of the Graph object affect line graphs:

Data structure of a pie graph

The following figure shows the data structure of multiple pie graph.

Sample multiple-pie graph

The data structure of a pie graph is as follows:

If you have only one group of data, then only one pie appears on the graph, even if you select a multiple pie graph type.

If any group has all zero or NA data, then that pie does not appear on the graph; in a single pie graph, if the first group of data has all zero or NA data, then the graph is blank.

In a single pie graph, the first group of data is represented in the pie. To show data for another group instead, call Graph.setStartCol (or Graph.setStartRow, if isDataRowShownAsASeries returns false) to the number of the group that you would like to display.

Data guidelines for pie graphs

Pie graph data has the following guidelines:

Handling Problems in Graph Data
Specifying Data for a Graph
Example: Setting JDBC Data on a Simple Graph
Example: Setting Data from a File on a Simple Graph