ChartDirector 6.0 (Perl Edition)

XYChart.getYValue


Usage

getYValue(yCoor [, yAxis ])

Description

Gets the y data value given the y pixel coordinate.

Note: This method should be used only after ChartDirector has output the chart image, or after XYChart.layoutAxes, BaseChart.layout or XYChart.packPlotArea has been called. ChartDirector needs to perform auto- scaling and layout the axis before it can convert between pixel coordinates and data values.

Arguments

ArgumentDefaultDescription
yCoor(Mandatory)The y pixel coordinate.
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.

Return Value

The y data value at the y pixel coordinate.