Set Picture as Background Fill in the Chart
Contents
[
Hide
]
Aspose.Cells allows you to set a gradient, texture, pattern or picture as fill effects for different objects, such as the plot area, chart area, or legend box of a chart. This document shows how to add an image to a chart’s background.
To achieve this, Aspose.Cells provides the Chart.PlotArea.Area.FillFormat.ImageData property. The following code sample demonstrates the use of Chart.PlotArea.Area.FillFormat.ImageData property to set a picture as a background fill in the chart.
C# code to set picture as background fill in the chart