Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Charts


public double GetScaleInternalValue(
    TimeSpan timeSpanValue


Name Type Description
timeSpanValue TimeSpan

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


Type Description

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


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.


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