I have a chart with some data present in it. I don't want to show the x and Y axis. I somehow find out how to remove the legend in the chart. But failed to hide the axis.
I just want to remove the Grid line and Axes also. I have the chart object with the below code.
PowerPoint.Shape chartShape = slide.Shapes.AddChart(Microsoft.Office.Core.XlChartType.xlBarClustered, left, top, width, height);
//Get the chart
PowerPoint.Chart chart = chartShape.Chart;
chart.Legend.Clear();
Can anyone knows how to hide it with c#?
If you use Aspose.Slides for .NET instead of Office Interop, you will hide the chart legend, axes and gridlines as shown below:
Result with default data:
Documentation | API Reference | Free forum
You can also evaluate Aspose.Slides Cloud for presentation manipulating. This REST-based API allows you to make 150 free API calls per month for API learning and presentation processing.
I work at Aspose.