ChartDirector Ver 3.1 (PHP Edition Edition)

Layer.getYCoor


Usage

getYCoor(v[, yAxis])

Description

Get the y coordinate of a point given the y value.

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
v(Mandatory)The y value.
yAxistrue (non-zero)A true (non-zero) value means using the primary y-axis to compute the coordinate. A false (zero) value means using the secondary y-axis to compute the coordinate.

Return Value

The y coordinate of the y value.