Axis.ValueToPosition Method (Double)

.NET Framework (current version)
 

Converts an axis value to its relative position (0-100%). If an axis has a logarithmic scale, the value is converted to a linear scale. This method only works in paint events.

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

Public Function ValueToPosition (
	axisValue As Double
) As Double

Parameters

axisValue
Type: System.Double

The axis value to be converted.

Return Value

Type: System.Double

A double value that represents the relative position (0-100%).

.NET Framework
Available since 4.0
Return to top
Show: