Click or drag to resize

IChartViewModelCalculateTimeFromX Method

Calculates the time from the x co-ordinates

Namespace: ArthaChitra.Model.Chart
Assembly: ArthaChitra.Core (in ArthaChitra.Core.dll) Version: 2.0.3.0
Syntax
C#
DateTime CalculateTimeFromX(
	double pointX,
	out int nearestBarIndex
)

Parameters

pointX  Double
Point
nearestBarIndex  Int32
The nearest bar index. This value is returned for Equi-distant axis only, if available. For Time Axis it is set to -1

Return Value

DateTime
For equi-distant axis it will return the nearest bar time. For time axis chart it will return the axis time of the x co-ordinate
See Also