Edit

Share via


ChartGraphics.GetPositionFromAxis(String, AxisName, Double) Method

Definition

Takes a given axis value for a specified axis and returns the relative pixel value.

public:
 double GetPositionFromAxis(System::String ^ chartAreaName, System::Web::UI::DataVisualization::Charting::AxisName axis, double axisValue);
public double GetPositionFromAxis (string chartAreaName, System.Web.UI.DataVisualization.Charting.AxisName axis, double axisValue);
member this.GetPositionFromAxis : string * System.Web.UI.DataVisualization.Charting.AxisName * double -> double
Public Function GetPositionFromAxis (chartAreaName As String, axis As AxisName, axisValue As Double) As Double

Parameters

chartAreaName
String

Chart area name.

axis
AxisName

An AxisName enumeration value that identifies the relevant axis.

axisValue
Double

The axis value to be converted to a relative pixel value.

Returns

A string value that represents the converted axis value, in relative pixel coordinates.

Applies to