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

ChartGroup.Overlap Property (PowerPoint)

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

Specifies how bars and columns are positioned. Read/write Long.

Syntax

expression. Overlap

expression A variable that represents a ChartGroup object.

Remarks

This property applies only to 2-D bar and 2-D column charts.

You can set this property to a value from -100 through 100. If this property is set to -100, bars are positioned so that there is one bar width between them. If the overlap is 0 (zero), there is no space between bars (one bar starts immediately after the preceding bar). If the overlap is 100, bars are positioned on top of each other.

Example

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

The following example sets the overlap for chart group one of the first chart in the active document to -50. You should run the example on a 2-D column chart that has two or more series.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        .Chart.ChartGroups(1).Overlap = -50

    End If

End With

See also

Concepts

ChartGroup Object

© 2018 Microsoft