ChartDirector Ver 3.1 (PHP Edition Edition)

PolarChart.getXCoor


Usage

getXCoor(r, a)

Description

Get the x pixel coordinate of a point given its radial and angular coordinates.

The radial and angular coordinates are measured using the scale of the radial and angular axes. In particular, the scale of the angular axis is not necessarily in degrees or radians. See AngularAxis.setLabels and AngularAxis.setLinearScale on how the angular axis scale is defined.

Note that you must call BaseChart.layout first before calling this method. It is because ChartDirector needs to perform auto-scaling and/or confirm the axis scale first before it can compute the coordinates.

Arguments

ArgumentDefaultDescription
r(Mandatory)The radial coordinate of the point.
a(Mandatory)The angular coordinate of the point.

Return Value

The x pixel coordinate of the point.