ChartDirector 7.0 (ASP/COM/VB Edition)



getYValue(yCoor [, yAxis ])


Gets the y data value given the y pixel coordinate.

This method always returns a numeric value. If the axis scale is a date/time scale, and you are expecting a Date data type, please use ChartDirector.API.NTime to convert the number to the Date data type.

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.


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.