Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding the gray border of the ZedGraph control

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.

like image 355
user1579585 Avatar asked Dec 31 '25 21:12

user1579585


1 Answers

The solution is:

GraphPane _gp = _zgc.GraphPane;
_gp.Margin.All = 0;
_gp.Legend.IsVisible = false;
_gp.Title.IsVisible = false;
like image 97
Peter Mortensen Avatar answered Jan 03 '26 10:01

Peter Mortensen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!