Visualizing proportional data is often best done with a pie chart. When you need to highlight a particular slice, an exploded pie chart—known in Aspose.Cells as PieExploded—does the job perfectly. This guide walks you through creating a PieExploded chart in Excel using C# with Aspose.Cells for .NET. The example is complete, fully commented, and ready to compile.

This article covers the following topics:

C# Excel Library to Create PieExploded Charts

Aspose.Cells for .NET is a comprehensive Excel API that enables developers to create, modify, and render Excel files without Microsoft Office. Among its many chart types, ChartType.PieExploded produces a pie chart where the first data point is “exploded” (offset from the centre), drawing immediate attention to that slice.

Key advantages of using Aspose.Cells for chart automation:

  • Rich Chart Portfolio – Over 50 chart types, including all pie variations.
  • Full .NET Compatibility – Works with .NET Framework, .NET Core, and .NET 6/7.
  • No COM/Interop – Pure managed code, ideal for server‑side environments.
  • High Fidelity Rendering – Charts look identical to native Excel.

Getting started is simple:

  1. Download the latest release from the Aspose.Cells releases page.

  2. Add the NuGet package to your project:

    PM> Install-Package Aspose.Cells
    

Create a PieExploded Chart in Excel using C#

Below is a complete, ready‑to‑run C# console program that:

  1. Creates a new workbook.
  2. Populates it with sample sales data.
  3. Adds a PieExploded chart.
  4. Customizes the chart title, legend, and the exploded slice distance.
  5. Saves the workbook to disk.

Explanation of Key Steps

StepPurpose
Create workbook & worksheetProvides a container for the data and chart.
Populate dataSupplies the numeric values (Revenue) and categories (Product).
Add chartChartType.PieExploded creates a pie chart with the first slice offset.
Set series & category dataLinks the chart to the worksheet ranges.
Explosion propertyControls how far the first slice is displaced (percentage of the radius).
Legend & data labelsImproves readability and highlights the exploded slice.
SaveWrites the Excel file to disk.

Run the program, open the generated PieExplodedChart_Output.xlsx, and you’ll see a visually appealing exploded pie chart that instantly draws attention to the Laptop slice.

Get a Free License

Curious about the full capabilities of Aspose.Cells? Visit the temporary license page and obtain a free, time‑limited license. It removes evaluation watermarks and lets you explore the library without restrictions.

Free Resources

Boost your Excel automation skills with these complimentary resources:

Conclusion

Creating a PieExploded chart with Aspose.Cells for .NET is straightforward and fully programmable. The example above demonstrates how to insert data, configure the exploded slice, and fine‑tune visual elements—all without needing Microsoft Excel on the server. Incorporate this pattern into reports, dashboards, or any solution that benefits from highlighted proportional data.

If you have questions or need assistance, reach out on our free support forum.

See Also