PieGroups Method
Applies To
Chart object.
Description
On a 2-D chart, returns an object that represents either a single pie chart group (a ChartGroup object, Syntax 1) or a collection of the pie chart groups (a ChartGroups collection, Syntax 2).
Syntax 1
expression.PieGroups(Index)
Syntax 2
expression.PieGroups
expression Required. An expression that returns a Chart object.
Index Optional Variant. Specifies the chart group.
See Also
AreaGroups method, BarGroups method, ChartGroups method, ColumnGroups method, DoughnutGroups method, LineGroups method, Pie3DGroup property.
Example
This example sets pie group one in Chart1 to use a different color for each data marker. The example should be run on a 2-D chart.
Charts("Chart1").PieGroups(1).VaryByCategories = True