This article shows how to hide legend in a chart in XlsIO using C#/VB.NET.
How to hide legend?
To hide chart legend in XlsIO, we need to set IChartShape.HasLegend property value to False. By default, this value will be True.
Steps to hide chart legend
The following C#/VB.NET complete code snippet shows how to hide chart legend in XlsIO.
The following screenshot shows the output of the Excel document in which the chart legend is hidden.
This page will automatically be redirected to the sign-in page in 10 seconds.