ProjectionMode Property

Microsoft Office Web Components Object Model

Show All

ProjectionMode Property

       

Returns or sets a ChartProjectionModeEnum constant indicating the viewing perspective of a three-dimensional chart. Read/write.

ChartProjectionModeEnum can be one of these ChartProjectionModeEnum constants.
chProjectionModeOrthograph Perspective is not applied in this view. The advantage to using this type of projection is that the vertical lines remain vertical, making some charts easier to read.
chProjectionModePerspective Provides the most realistic 3-D appearance. Objects farther away converge towards a vanishing point. This is the default projection.

expression.ProjectionMode

expression   Required. An expression that returns a ChChart object.

Example

This example converts the first chart in Chartspace1 to a 3-D Column chart and then sets the projection mode of the chart.

Sub SetExtrudeAngle()

    Dim cht3DColumn
    Dim chConstants

    Set chConstants = Chartspace1.Constants

    ' Set a variable to the first chart in Chartspace1.
    Set cht3DColumn = ChartSpace1.Charts(0)

    ' Change the chart to a 3D Column chart.
    cht3DColumn.Type = chChartTypeColumnClustered3D

    ' Sets the projection mode to orthographic.
    cht3DColumn.ProjectionMode = chConstants.chProjectionModeOrthographic

    ' Sets the extrusion angle.
    cht3DColumn.ExtrudeAngle = 75

End Sub