HTML JPG PDF XML XLSX
  Product Family
XLSX

Create PyramidBarStacked Chart in XLSX Documents via C#

Programmatically add a stacked pyramid bar chart to Microsoft Excel workbooks using Aspose.Cells for .NET – no Excel installation required.

Generating a Microsoft Excel XLSX workbook that visualizes data with a PyramidBarStacked chart is straightforward with Aspose.Cells for .NET. The library lets you create, format, and save charts without the need for Microsoft Excel on the server.

How to create a PyramidBarStacked chart in XLSX via C#

Follow the steps below to add a Stacked Pyramid Bar chart to a worksheet. The example demonstrates data preparation, chart creation, series definition, styling, and saving the workbook.

  1. Include the required namespace in your class file.
  2. Instantiate the Workbook class.
  3. Populate worksheet cells with source data.
  4. Add a chart of type ChartType.PyramidBarStacked.
  5. Define the data range for each chart series.
  6. Apply optional formatting (title, legend, colors).
  7. Save the workbook to XLSX format.

System Requirements

Aspose.Cells for .NET runs on any platform that supports .NET Framework 4.0+, .NET Core 2.0+, .NET 5/6/7, Mono, Xamarin, or Azure Functions. Development can be performed with Visual Studio, Visual Studio Code, or any other C# IDE.

 

Create PyramidBarStacked Chart - C#

 
Aspose.Cells for .NET empowers developers to create high‑performance, cross‑platform applications that can generate, modify, render and print Excel spreadsheets. Apart from creating charts, the API supports conversion between formats, data extraction, and more, making it an ideal choice for server‑side spreadsheet processing.

XLSX What is XLSX File Format?

XLSX is the default file format for Microsoft Excel workbooks introduced with Office 2007. It follows the Open Packaging Conventions (OPC) and stores workbook data as a collection of XML parts inside a ZIP container.

Read More