After you create a chart, you can apply chart protection to prevent your chart from being modified by a user. To protect a chart, utilize the ChartOptions.Protection property. After chart protection is specified, the chart becomes completely locked, so that a user cannot select the chart, modify its elements or change chart data references.
You can also protect the entire worksheet where the chart is located by using the Worksheet.Protect method. For detailed information on the protection functionality, refer to the Protection section.
The following example demonstrates how to create a clustered column chart and apply chart protection using the ChartOptions.Protection property.