Chart.Perspective Property (Project)

Gets or sets a value that represents the perspective for the 3-D chart view. Read/write Long.

Syntax

expression. Perspective

expression A variable that represents a 'Chart' object.

Remarks

The value of the Perspective property must be between 0 and 100. Perspective is ignored if the RightAngleAxes property is True.

Example

The following example sets the perspective of the chart to 20. The example should be run on a 3-D chart.

Sub SetPerspective()
    Dim chartShape As Shape
    Dim reportName As String
    
    reportName = "Simple 3-D chart"
    Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
    
    chartShape.Chart.RightAngleAxes = False
    chartShape.Chart.Perspective = 20
End Sub

Property value

INT

See also

Chart Object