Change labels of LinearAxis

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

Nirraven wrote at 2013-10-02 11:58:


I'd like to display DateTime/double values in a non-DateTime x-axis manner.
The x-axis' labels are still to be DateTimes, but with a regular distance instead of being converted to doubles.

Maybe it's more clear with this (Excel chart) pic showing the upper chart as DateTime x-axis, the lower chart as I'd like to have it displayed:

Can I achieve this with oxyplot without altering any code?

Thanks in advance!

objo wrote at 2013-10-02 12:25:

Can CategoryAxis be used?

Nirraven wrote at 2013-10-02 13:58:

Requires a little more coding to prepare the data, but works perfectly.

Thanks a lot and keep up the great work!