Hiding the X axis on a chart with ZedGraph lib

I want to hide the X axis in my graph. Here is my code for that:

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

      

But I have a problem with him.

My schedule:

enter image description here

After defining the X axis:

enter image description here

Any idea why I am having this problem?

+3


source to share


1 answer


zg1.GraphPane.YAxis.MajorGrid.IsZeroLine = false;

      



+6


source







All Articles