2

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.

agamesh
  • 559
  • 1
  • 10
  • 26
cheedep
  • 937
  • 6
  • 19

1 Answers1

3

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

GraphPane.X2Axis.IsVisible = true;
GraphPane.XAxis.IsVisible = false;
GraphPane.YAxis.Scale.IsReverse = true;
NominSim
  • 8,447
  • 3
  • 28
  • 38
  • what version has the X2 axis? I am using v5.0.1.25233 and it does not have X2. I will just get the latest one and try. – cheedep Feb 22 '12 at 17:30
  • I've got 5.1.5.28844 which uses it, not sure but in previous versions you might be able to add an x axis using GraphPane.AddAxis – NominSim Feb 22 '12 at 18:04
  • I have downloaded v5.1.5.28844 and I can get the X2Axis and everything works perfect. Thank you so much. – cheedep Feb 22 '12 at 18:43
  • @cheedep No problem, I know how tough it can be to get ZedGraph help – NominSim Feb 22 '12 at 18:48