Hi,
First, really thanks for your job!!!
The method public static DateTime ToDateTime(double value) in OxyPlot.Axes.DateTimeAxis
produce an ArgumentOutOfRangeException when we zoom out at maximum
you could correct it wih this code
/// <summary>
/// Converts a numeric representation of the date (number of days after the time origin) to a DateTime structure.
/// </summary>
/// <param name="value">
/// The number of days after the time origin.
/// </param>
/// <returns>
/// A date/time structure.
/// </returns>
public static DateTime ToDateTime(double value)
{
var result = new DateTime();
if (double.IsNaN(value))
{
return result;
}
if (CanAddDays(timeOrigin, value1))
{
result= timeOrigin.AddDays(value  1);
}
return result;
}
/// <summary>
/// Determines whether this instance [can add days] the specified dt.
/// </summary>
/// <param name="dt">The dt.</param>
/// <param name="days">The days.</param>
/// <returns></returns>
public static bool CanAddDays(DateTime dt, double days)
{
double maxDaysToAdd = (DateTime.MaxValue  dt).TotalDays;
double minDaysToAdd = (DateTime.MinValue  dt).TotalDays;
return days <= maxDaysToAdd && days >= minDaysToAdd;
}
And one more thing : We have to comment the default constructor to use DateTimeAxis in vb.net
Thanks again
Cedre
