it's generally y vs x
so in this case displacement is the x axis
Usually x is the quantity you control and y is the quantity that you're interested in.
If you are controlling the force and then measuring a corresponding displacement, then it would make sense to show the force on the x axis.
Either way, there is no hard rule that I'm aware of.
Ultimately you can make your own choice.