Table of contents
Collapse the table of content
Expand the table of content

ChartGroup.GapWidth Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

For bar and column charts, returns or sets the space, as a percentage of the bar or column width, between bar or column clusters. For pie-of-pie and bar-of-pie charts, returns or sets the space between the primary and secondary sections of the chart. Read/write Long.


expression. GapWidth

expression A variable that represents a ChartGroup object.


The value of this property must be between 0 and 500.


Note Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

The following example sets the space between column clusters for the first chart in the active document to be 50 percent of the column width.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        .Chart.ChartGroups(1).GapWidth = 50

    End If

End With

See also


ChartGroup Object

© 2018 Microsoft