Can the labels on the x-axis be changed?

Jan 27, 2013 at 3:12 PM

Is there an easy way to change the labels on the x axis

I want to use should dates 12/15/2012 and so on or are there any alternatives?

 

thanks

Jerry

Coordinator
Feb 10, 2013 at 10:11 PM
The Axis class has a StringFormat property that defines the formatting string.
Try setting yourAxis.StringFormat="MM/dd/yyyy";
In OxyPlot you can also use w and ww for week numbers.
Also note the Culture property in the PlotModel. If Culture is not set, CultureInfo.CurrentCulture is used.