How do I remove the gray border of the ZedGraph control?
Just the graph should be in the form, without the gray border, label, and an title.
I tried to solve the problem with
_zgc.MasterPane.Border.Width = 0;
_zgc.MasterPane.Border.IsVisible = false;
but for now without success.
The solution is:
GraphPane _gp = _zgc.GraphPane;
_gp.Margin.All = 0;
_gp.Legend.IsVisible = false;
_gp.Title.IsVisible = false;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With