ChartDirector 7.0 (ASP/COM/VB Edition)

XYChart.getXValue


Usage

getXValue(xCoor)

Description

Gets the x data value given the x 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.

Arguments

ArgumentDefaultDescription
xCoor(Mandatory)The x pixel coordinate.

Return Value

The x data value at the x pixel coordinate.