4

I want hide X axis on my graph. Here is my code for it:

zg1.GraphPane.XAxis.IsVisible = false;
zg1.AxisChange();
zg1.Invalidate();

But i have problem with it.

My graph:

enter image description here

After hidding X axis:

enter image description here

Any idea why i have this issue?

kmatyaszek
  • 19,016
  • 9
  • 60
  • 65
Yozer
  • 648
  • 1
  • 11
  • 26

1 Answers1

7
zg1.GraphPane.YAxis.MajorGrid.IsZeroLine = false;
Otiel
  • 18,404
  • 16
  • 78
  • 126
koponk
  • 452
  • 1
  • 3
  • 14