Back to Devexpress

AxisBase.GetScaleValueFromInternal(Double) Method

corelibraries-devexpress-dot-xtracharts-dot-axisbase-dot-getscalevaluefrominternal-x28-system-dot-double-x29.md

latest2.4 KB
Original Source

AxisBase.GetScaleValueFromInternal(Double) Method

Converts the specified internal value of the current X-axis scale to a scale value.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public object GetScaleValueFromInternal(
    double internalValue
)
vb
Public Function GetScaleValueFromInternal(
    internalValue As Double
) As Object

Parameters

NameTypeDescription
internalValueDouble

A Double value which specifies an internal value to convert.

|

Returns

TypeDescription
Object

A Object value that represents a scale value.

|

Remarks

Use the GetScaleValueFromInternal method to obtain a qualitative axis value from the internal numerical equivalent.

csharp
XYDiagram diagram = chartControl1.Diagram as XYDiagram;
string argument = diagram.AxisX.GetScaleValueFromInternal(0).ToString();
vb
Dim diagram As XYDiagram = TryCast(chartControl1.Diagram, XYDiagram)
Dim argument As String = diagram.AxisX.GetScaleValueFromInternal(0).ToString

The code above sets the argument variable to Asia for the following chart:

See Also

Axis Scale Types

Axis Ranges

AxisBase Class

AxisBase Members

DevExpress.XtraCharts Namespace