ChartGraphics.GetPositionFromAxis Method (String, AxisName, Double)

.NET Framework (current version)
 

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
Available since 4.0
Return to top
Show: