if i create a DateTimeAxis with c# like this:
DateTimeAxis xAxis = new DateTimeAxis
{
Position = AxisPosition.Bottom,
StringFormat = "dd/MM/yyyy",
Title = "Year",
MinorIntervalType = DateTimeIntervalType.Days,
IntervalType = DateTimeIntervalType.Days,
MajorGridlineStyle = LineStyle.Solid,
MinorGridlineStyle = LineStyle.None,
};
FunctionSeries fs = new FunctionSeries();
fs.Points.Add(new DataPoint(DateTimeAxis.ToDouble(DateTime.Now), 5));
fs.Points.Add(new DataPoint(DateTimeAxis.ToDouble(new DateTime(1989, 10, 3)), 8));
PlotModel n = new PlotModel();
n.Series.Add(fs);
n.Axes.Add(xAxis);
n.Axes.Add(new LinearAxis());
pv.Model = n;
Everything is drawing fine on the graph but if i press on the point i get this data as label:
Year: 0.#### X: 6.2523
So the X-information is correct but i don't know why oxyplot doesn't show the correct year?