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
Declaration
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.