ChartDirector 6.2 (.NET Edition)

Layer.getXCoor


Usage

[C#] public int getXCoor(double v);
[VB] Public Function getXCoor(v As Double) As Integer

Description

Gets the x pixel coordinate given the x data value.

This method only accepts numeric values as input. If the axis scale is a date/time scale, and you are using a DateTime value, please use Chart.CTime to convert it to a number.

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
v(Mandatory)The x data value.

Return Value

The x pixel coordinate of the x data value.