Dundas Chart for ASP.NET
PositionToValue Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > AxisScale Class : PositionToValue Method


position
Relative position (0-100%).

Converts a relative coordinate along an axis to an axis value.  This method only works in paint events.


This function converts relative position to an axis value. If an axis has logarithmic scale, value is converted to a linear scale.

Syntax

Visual Basic (Declaration)  
Public Function PositionToValue( _
   ByVal position As Double _
) As Double
Visual Basic (Usage) Copy Code
Dim instance As AxisScale
Dim position As Double
Dim value As Double
 
value = instance.PositionToValue(position)
C#  
public double PositionToValue( 
   double position
)

Parameters

position
Relative position (0-100%).

Return Value

The axis value that corresponds to the specified relative position along the axis.
Axis value.

Remarks

This method returns a value along an axis for a given relative axis position.  The given position is a percentage of the chart picture's width or height, depending on the axis type.  Note that the chart coordinate system has the top-left corner of the image at position (0,0) and the bottom-right corner of the chart picture at position (100,100).

For more information concerning the chart's coordinate system see the Chart Coordinate System topic.

If the axis scale is logarithmic then the value is converted so that it uses a linear scale.

The axis value that corresponds to a given absolute pixel position along an axis can be obtained using the PixelPositionToValue method.

This method only works in paint events.

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

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.