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 (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)
|
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