ChartDirector Ver 4.1 (ColdFusion Edition)

Layer.getYCoor


Usage

getYCoor(v [, yAxis ])

Description

Gets the y pixel coordinate of a point given the y data value.

Note: You must call BaseChart.layout first before calling this method. It is because ChartDirector needs to perform auto-scaling and determine the axis scale first before it can compute the coordinates.

Arguments

ArgumentDefaultDescription
v(Mandatory)The y data value.
yAxis[Null]The y-axis to use to determine the pixel coordinates of data values. The y-axis may be obtained using XYChart.yAxis, XYChart.yAxis2 or XYChart.addAxis. The default is to use the primary y-axis.

For backward compatibility, the axis argument can also be a boolean value. A true (non-zero) value means the primary y-axis. A false (zero) value means the secondary y-axis.

Return Value

The y coordinate of the y data value.