Aspose Examples > .NET Components > Aspose.Cells > VB.NET > Conversion > Convert chart to image

 

 Convert Chart to Image File - Aspose.Cells

This online demo demonstrates how to convert a Pie chart to image file using Aspose.Cells for .NET API.

The demo creates a workbook first and inputs the chart source data into the first two columns (A and B) of the first worksheet. The first column represents the category data (Region) where as the second column represents the sales data representing values.

The demo creates a pie chart dynamically representing Sales By Region into the worksheet named ChartSheet based on the different sale values related to different regions. Then, it converts this chart in the first worksheet to image file. You can either open the resultant image file into your picture viewer or save directly to your disk.