cheedep
cheedep

Reputation: 937

ZedGraph XAxis on top of the graph rectangle

Is there a way to position the XAxis of the ZedGraph on top of the graph and use IsReverse on the scale of the YAxis so that my graph looks like below

  Y
X 0 1 2 3 4 5
  1
  2
  3
  4
  5

Should I achieve this using X2 axis? I do not know how to add it if there is an X2Axis.

I have searched a lot and could not find an answer. Just wanted to make sure it is not possible before I switch to microsoft chart.

Thanks.

Upvotes: 2

Views: 1279

Answers (1)

NominSim
NominSim

Reputation: 8511

You can achieve that using x2 axis by doing the following:

GraphPane.X2Axis.IsVisible = true;
GraphPane.XAxis.IsVisible = false;
GraphPane.YAxis.Scale.IsReverse = true;

Upvotes: 3

Related Questions