ChartDirector 7.0 (Perl Edition)

SurfaceChart.addXYProjection


Usage

addXYProjection([ offset ])

Description

Adds a projection of the surface on the XY wall.

The XY wall is the wall containing the x axis and y axis. It is usually under the plotted surface. Because of this, the surface may block the projection, making it hard to see. To address this issue, it is common to add a bottom margin to the z-axis (see Axis.setMargin). This will move the z-axis scale and therefore the surface upwards, leaving more space between the surface and the XY wall to make the projection more visible.

This method accepts an optional offset argument that can be used to move the projection vertically. A positive offset moves the it upwards. A negative offset moves it under the XY wall. Because of this, for negative offsets, the XY wall must be hidden using ThreeDChart.setWallVisibility, otherwise the chart will not be drawn correctly.

Arguments

ArgumentDefaultDescription
offset0The vertical offset of the XY projection in 3D pixel coordinates. A positive offset moves it upwards. A negative offset moves it under the XY wall.

Return Value

None