HTML
JPG
PDF
XML
XLSX
XLSX
Create Pyramid Stacked Chart in Excel Documents via C#
High‑performance, server‑side creation of Pyramid Stacked charts in Microsoft Excel spreadsheets using Aspose.Cells for .NET.
Generating a Microsoft Excel workbook that contains a Pyramid Stacked chart is straightforward with Aspose.Cells for .NET. This chart type is ideal for visualising hierarchical data where each level of the pyramid represents a part of the whole, and the stacked sections show the contribution of individual series.
How to create a Pyramid Stacked chart in XLSX via C#
The following steps walk you through creating a Pyramid Stacked chart programmatically:
- Add the Aspose.Cells namespace.
- Instantiate a Workbook object.
- Fill the worksheet with sample data.
- Add a chart of type ChartType.PyramidStacked.
- Configure the chart’s series, title, and legend.
- Save the workbook.
System Requirements
Aspose.Cells for .NET works on any platform that supports .NET Framework 4.x, .NET Core 2.0+, .NET 5/6/7, or .NET Standard 2.0. No Microsoft Office installation is required.
Install via NuGet:
nuget install Aspose.Cellsor in Visual Studio’s Package Manager Console:
Install-Package Aspose.CellsYou can also download the offline MSI installer or a ZIP package from the Aspose.Cells .NET download page.
Create Pyramid Stacked Chart – C#
Aspose.Cells for .NET is a powerful, cross‑platform library that enables developers to create, manipulate, convert, render, and print Excel files without requiring Microsoft Office. It supports a broad range of spreadsheet formats—XLS, XLSX, XLSM, XLSB, ODS, CSV, and more—making it ideal for server‑side reporting, data analysis, and document automation.
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 content as a collection of XML parts within a ZIP container, providing a compact, standards‑based representation of spreadsheet data.
Read More