We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Chart axes gridlines - how change thei properties?

Hi guys, I need change properties of axes gridlines, but I don’t know how…
Especially I am intereted in make them invisible.


Thanks for considering Aspose.

Please use Chart.MajorGridLines.IsVisible to set to false for your need.

And you may also utilize the following options, e.g.,

Chart chart = sheet.Charts[chartIndex];
chart.CategoryAxis.MajorGridLines.IsVisible = false;
chart.CategoryAxis.MinorGridLines.IsVisible = false;
chart.ValueAxis.MajorGridLines.IsVisible = false;
chart.ValueAxis.MinorGridLines.IsVisible = false;

Thank you.