ColumnGroups Method

Applies To

Chart object.

Description

On a 2-D chart, returns an object that represents either a single column chart group (a ChartGroup object, Syntax 1) or a collection of the column chart groups (a ChartGroups collection, Syntax 2).

Syntax 1

expression.ColumnGroups(Index)

Syntax 2

expression.ColumnGroups

expression Required. An expression that returns a Chart object.

Index Optional Variant. The index number of the specified column chart group.

See Also

AreaGroups method, BarGroups method, ChartGroups method, Column3DGroup property, DoughnutGroups method, LineGroups method, PieGroups method.

Example

This example sets the space between column clusters in the 2-D column chart group to be 50 percent of the column width.

myChart.ColumnGroups(1).GapWidth = 50