Can the labels on the x-axis be changed?

Oystein Bjorke hace 10 años 0
This discussion was imported from CodePlex

drj1000 wrote at 2013-01-27 16:12:

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


objo wrote at 2013-02-10 23:11:

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.