This documentation is archived and is not being maintained.

ChartGraphics::GetPositionFromAxis Method

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

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public:
double GetPositionFromAxis(
	String^ chartAreaName, 
	AxisName axis, 
	double axisValue
)

Parameters

chartAreaName
Type: System::String
Chart area name.
axis
Type: System.Web.UI.DataVisualization.Charting::AxisName
An AxisName enumeration value that identifies the relevant axis.
axisValue
Type: System::Double
The axis value to be converted to a relative pixel value.

Return Value

Type: System::Double
A string value that represents the converted axis value, in relative pixel coordinates.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: