ChartDirector 7.0 (Perl Edition)

ThreeDChart.setPlotRegion


Usage

setPlotRegion(cx, cy, xWidth, yDepth, zHeight)

Description

Sets the position of the plot region.

The plot region is a 3D box, with x, y, and z axes along its border, using a right-hand cartesian coordinate system.

To create the chart image, you may imagine a camera taking a photograph of the box. The photograph can be taken at different angles, configurable with ThreeDChart.setViewAngle. The position of the plot region in the photograph is such that the center of the plot region is at a given point (cx, cy) on the image.

Arguments

ArgumentDefaultDescription
cx(Mandatory)The x pixel coordinate of the point on the image at which the center of the plot region is located.
cy(Mandatory)The y pixel coordinate of the point on the image at which the center of the plot region is located.
xWidth(Mandatory)The length of the x-dimension of the plot region in pixels.
yDepth(Mandatory)The length of the y-dimension of the plot region in pixels.
zHeight(Mandatory)The length of the z-dimension of the plot region in pixels.

Return Value

None