Dundas.SharePoint.Charting.WebParts Send comments on this topic.
GetPositionFromAxis Method
See Also 
Dundas.Charting.WebControl Namespace > ChartGraphics Class : GetPositionFromAxis Method


chartAreaName
Chart Area Name
axis
Axis Name Enumeration
axisValue
Value, which has to be converted to relative pixel position
This method will return relative pixel position (in percentages 0 – 100) from double value. This method uses axis position and axis scale to find position for the value. This method is very important for custom drawing inside chart area and it helps to find position for a data point value.

Syntax

Visual Basic (Declaration)  
Public Function GetPositionFromAxis( _
   ByVal chartAreaName As String, _
   ByVal axis As AxisName, _
   ByVal axisValue As Double _
) As Double
Visual Basic (Usage) Copy Code
Dim instance As ChartGraphics
Dim chartAreaName As String
Dim axis As AxisName
Dim axisValue As Double
Dim value As Double
 
value = instance.GetPositionFromAxis(chartAreaName, axis, axisValue)
C#  
public double GetPositionFromAxis( 
   string chartAreaName,
   AxisName axis,
   double axisValue
)

Parameters

chartAreaName
Chart Area Name
axis
Axis Name Enumeration
axisValue
Value, which has to be converted to relative pixel position

Return Value

Relative pixel position from axis

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also