BarGroups Method

On a 2-D chart, this method returns an object that represents either a single bar chart group or a collection of all the bar chart groups.

expression. BarGroups( _Index_)

expression Required. An expression that returns one of the objects in the Applies To list.

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

Example

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

myChart.BarGroups(1).GapWidth = 50