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

Chart.GapDepth Property (Project)

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

Gets or sets the distance between the data series in a 3-D chart, as a percentage of the marker width. Read/write Long.


expression. GapDepth

expression A variable that represents a Chart object.


The value of the GapDepth property must be between 0 and 500. The GapDepth property fails on 2-D charts.


The following example sets the distance between the data series in the chart to 200 percent of the marker width. The example should be run on a 3-D chart.

Sub SetGapDepth()
    Dim chartShape As Shape
    Dim reportName As String

    reportName = "Simple 3D chart"
    Set chartShape = ActiveProject.Reports(reportName).Shapes(1)

    chartShape.Chart.GapDepth = 200
End Sub

Property value


See also

Other resources

Chart Object

© 2018 Microsoft