ChartGraphics.GetPositionFromAxis(String, AxisName, Double) Method

Definition

Takes a given axis value for a specified axis and returns the relative pixel value.

C#
public double GetPositionFromAxis(string chartAreaName, System.Web.UI.DataVisualization.Charting.AxisName axis, double axisValue);

Parameters

chartAreaName
String

Chart area name.

axis
AxisName

An AxisName enumeration value that identifies the relevant axis.

axisValue
Double

The axis value to be converted to a relative pixel value.

Returns

A string value that represents the converted axis value, in relative pixel coordinates.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1