x-axis in descending order

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

yt2 wrote at 2013-08-13 16:39:

Hi,

I'm using oxyplot for some scientific stuff with C# and WPF. I'm looking for a way to sort the x-axis in descending order (ex. 720 to 400).

I tried a lot of things and did a research on the web - but didn't find any way to solve this. Could you please help me?

Thanks
Nico

everytimer wrote at 2013-08-13 20:05:

Did you took a look to the examples? See "Reversed" in Axis Examples.

You need to set the StartPosition and EndPosition of your axis to 1 and 0 respectively. Then if you want you can set the Minimum/Maximum. Good luck

yt2 wrote at 2013-08-14 10:35:

Thanks! I had a look at the example explorer but I wondered how to see the code behind - now I know.