HTML JPG PDF XML XLSX
  Product Family
XLSX

Create Pyramid Chart in XLSX Documents via C#

High‑performance creation of Microsoft Excel XLSX spreadsheets with Pyramid chart support using server‑side .NET APIs.

Generating an Excel XLSX file that contains a Pyramid chart dynamically inside a running application is straightforward. In this article we demonstrate how to create a Pyramid chart without requiring Microsoft Office by using Aspose.Cells for .NET – a powerful API for spreadsheet creation, manipulation and conversion on the .NET platform. The sample can easily be extended to add more data, customize chart appearance or embed the workbook into ASP.NET, WPF, or console applications.

How to create a Pyramid chart in XLSX via C#

The following steps walk you through the process of adding a Pyramid chart to an Excel workbook:

  1. Include the required namespace.
  2. Create a Workbook instance.
  3. Populate a worksheet with category and value data.
  4. Add a Pyramid Bar chart to the worksheet.
  5. Bind the data range to the chart’s series.
  6. Apply optional styling and a chart title.
  7. Save the workbook as an XLSX file.

System Requirements

Aspose.Cells for .NET runs on any operating system that supports .NET Framework 4.0+, .NET Core 2.0+, .NET 5/6/7, Mono, Xamarin, and Windows Azure. Development environments such as Microsoft Visual Studio, Rider, or VS Code are fully supported.

  • Install the library from the command line: nuget install Aspose.Cells
    or via the NuGet Package Manager Console: Install-Package Aspose.Cells.
  • Alternatively, download the complete ZIP package or MSI installer from the Aspose.Cells .NET download page.

 

Create Pyramid Chart in XLSX – C#

 
Aspose.Cells is a cross‑platform .NET library that enables developers to create, modify, convert, render and print Excel spreadsheets without requiring Microsoft Excel. The API supports a wide range of chart types—including Pyramid, Funnel, Bar, Pie, Radar and more—allowing you to generate fully‑featured workbooks for reporting, analytics, or data‑visualisation scenarios.

XLSX What is XLSX File Format?

XLSX is Microsoft Excel’s modern Open XML format introduced with Office 2007. It stores workbook data in a zip package containing multiple XML parts. Aspose.Cells works directly with these parts, making it possible to create or edit XLSX files on any platform that supports .NET.

Read More