ChartDirector Ver 3.1 (PHP Edition Edition)

PolarChart.getYCoor


Usage

getYCoor(r, a)

Description

Get the y 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 particulr, the scale of the angular axis is not necessarily 0 - 360 (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 y pixel coordinate of the point.