HTML JPG PDF XML XLSX
  Product Family
XLSX

Create Bar100PercentStacked Chart in XLSX Documents via C#

Generate a high‑performance 100 % Stacked Bar chart programmatically using Aspose.Cells for .NET – no Microsoft Excel required.

Generating a Microsoft Excel XLSX workbook that contains a 100 % Stacked Bar chart (ChartType.Bar100PercentStacked) is straightforward with Aspose.Cells for .NET. This type of chart visualises the relative contribution of each data series to a total, expressed as a percentage, and is ideal for showing part‑to‑whole relationships across categories.

How to create Bar100PercentStacked chart in XLSX via C#

Follow the steps below to insert a Bar100PercentStacked chart into a worksheet, bind it to a data range, and customize its appearance.

  1. Add the Aspose.Cells namespace to your project.
  2. Create an instance of the Workbook class.
  3. Populate the worksheet with the data that will feed the chart.
  4. Insert a chart object and set its ChartType to ChartType.Bar100PercentStacked.
  5. Define the chart’s data series, categories, and position.
  6. Save the workbook as an XLSX file.

System Requirements

Aspose.Cells for .NET works on any platform that supports .NET Framework 4.0+, .NET Core 2.0+, .NET 5/6/7, Mono, Xamarin, or Azure Functions. No Microsoft Excel installation is required.

  • Install via NuGet: dotnet add package Aspose.Cells or Install-Package Aspose.Cells.
  • Alternatively, download the DLLs from the Aspose.Cells download page.

 

Create Bar100PercentStacked Chart - C#

 
Aspose.Cells for .NET enables developers to create, edit, convert, render, and print Excel spreadsheets across platforms without Microsoft Office. Its rich charting API supports all native Excel chart types—including the Bar100PercentStacked chart—allowing you to generate professional reports and dashboards on the server side.

XLSX What is XLSX File Format?

XLSX is the default file format for Microsoft Excel workbooks introduced in Office 2007. It follows the Open Packaging Conventions (OPC) and stores worksheet data, styles, and charts as XML parts inside a ZIP container, making it both lightweight and highly interoperable.

Read More