Skip to main content

AxisBase.GetScaleInternalValue(DateTime) Method

Converts the specified date-time 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

public double GetScaleInternalValue(
    DateTime dateTimeValue
)

Parameters

Name Type Description
dateTimeValue DateTime

A DateTime value which specifies a date-time value to convert.

Returns

Type Description
Double

A Double value which 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, or ScaleType.DateTime. Use the GetScaleInternalValue method to convert any value to the internal axis scale format.

Note

This method returns System.Double.NaN if the date-time value doesn’t exist.

For more information, refer to Axis Scale Types.

See Also