Category / Section
How can I return DateTime value through IChartSeriesModel?
1 min read
The IChartSeriesModel can return DateTime values as a double value using the ToOADate method of DateTime.
C#
public double GetX(int xIndex)
{
return this.x[xIndex].ToOADate();
}
VB
Public Function GetX(ByVal xIndex As Integer) As Double Implements IChartSeriesModel.GetX
Return Me.x(xIndex).ToOADate()
End Function