I have been using the DateTimeAxis for some dynamically created plots. But I have yet to figure out what combination of options I need to get an axis the way the users want.
I'm using the following now:
hAxisDate.Minimum = OxyPlot.DateTimeAxis.ToDouble(minDate);
hAxisDate.Maximum = OxyPlot.DateTimeAxis.ToDouble(maxDate);
hAxisDate.IntervalType = DateTimeIntervalType.Years;
hAxisDate.MajorTickSize = 10;
hAxisDate.MinorIntervalType = DateTimeIntervalType.Months;
hAxisDate.ShowMinorTicks = true;
hAxisDate.MinorStep = 1;
hAxisDate.MinorTickSize = 5;
With minDate of 6/22/2013 and maxDate of 1/1/2017 I only get MajorTicks and Dates.
the dates are 2015,2017,2019,2021,2023,2025,2027 no MajorTick's in between or dates.
Also no month ticks.
Users would like to see major ticks at each year, date every other or whatever would show without overlap.
Along with month ticks if they would not get to crowded.