All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

AxisBase.GetScaleInternalValue(TimeSpan) Method

Converts the specified time-span value to an internal numeric format of the current X-axis scale.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.1.dll

Declaration

public double GetScaleInternalValue(
    TimeSpan timeSpanValue
)

Parameters

Name Type Description
timeSpanValue TimeSpan

A TimeSpan value that specifies a time-span value to convert.

Returns

Type Description
Double

A Double value that represents an x-axis value in the internal format.

Remarks

The x-axis always represents any values in the internal numeric format, whether it is ScaleType.Numerical, ScaleType.Qualitative, ScaleType.DateTime or ScaleType.TimeSpan. Use the GetScaleInternalValue method to convert any value to the internal axis scale format.

Note

This method returns System.Double.NaN if the time-span value does not exist.

See also the Axis Scale Types document that explains how to handle axes with various scales.

See Also