ChartDirector 7.1 (C++ Edition)

XYChart.getXValue


Usage

double getXValue(int xCoor);

Description

Gets the x data value given the x 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
xCoor(Mandatory)The x pixel coordinate.

Return Value

The x data value at the x pixel coordinate.