HTML JPG PDF XML XLSX
  Product Family
XLSX

Create PieBar Chart in XLSX Documents via C#

Generate high‑performance Microsoft Excel XLSX spreadsheets with PieBar (Bar of Pie) charts programmatically using server‑side .NET APIs.

Generating a Microsoft Excel XLSX file that contains a PieBar (Bar of Pie) chart is straightforward with Aspose.Cells for .NET. The library lets you create, customize and save charts without any dependency on Microsoft Office, making it ideal for server‑side reporting, analytics dashboards or any .NET‑based solution that works with spreadsheets.

How to create a PieBar chart in XLSX via C#

Below are the steps required to add a PieBar chart to an Excel workbook programmatically.

  1. Add the Aspose.Cells namespace to your class.
  2. Create a Workbook object.
  3. Access the first Worksheet.
  4. Populate the worksheet with source data.
  5. Insert a Chart of type BarOfPie (PieBar).
  6. Configure the chart’s data series, categories and style.
  7. Save the workbook to an XLSX file.

System Requirements

The solution runs on any platform that supports .NET Framework, .NET Core, .NET 5/6/7, Windows Azure, Mono or Xamarin. A typical development environment is Microsoft Visual Studio.

  • Install the library from NuGet:

    nuget install Aspose.Cells
    # or
    Install-Package Aspose.Cells
    
  • Alternatively, download the offline MSI installer or the ZIP package from the Aspose.Cells downloads page.

 

Create PieBar (Bar of Pie) Chart – C#

 
Aspose.Cells for .NET is a complete spreadsheet processing API that enables developers to create, edit, convert, render, and print Excel files without Microsoft Excel. It supports a wide range of formats (XLS, XLSX, XLSM, XLSB, CSV, ODS, etc.) and provides exhaustive charting capabilities, including PieBar (Bar of Pie) charts.

XLSX What is XLSX File Format?

XLSX is the Open XML format introduced with Microsoft Office 2007. It stores spreadsheet data in a ZIP package that contains XML parts, making it easy to analyze, transform, or render without requiring Office installed on the server.

Read More