Visualizing proportional data across multiple categories is a common requirement in business reporting. A Column3D100PercentStacked chart shows each data series as part of a whole, stacked in a three‑dimensional column, and normalizes each column to 100 %. This guide walks you through creating such a chart in Excel using C# and Aspose.Cells for .NET. The solution is fully code‑driven, requires no Excel installation, and can be saved to XLSX, PDF or image formats.
This article covers:
- C# Excel Library to Create Column3D100PercentStacked Chart
- Create a Column3D100PercentStacked Chart in Excel using C#
- Free Resources
- Get a Free License
- Conclusion
- See Also
C# Excel Library to Create Column3D100PercentStacked Chart
Aspose.Cells for .NET is a high‑performance library that allows developers to create, modify, and render Excel files without Microsoft Office. It provides a rich charting API covering more than 50 chart types, including the Column3D100PercentStacked chart.
Key advantages of using Aspose.Cells for chart creation:
| Feature | Benefit |
|---|---|
| Comprehensive API | Full access to chart types, series, axes, legends, and formatting. |
| No Excel required | Works on any platform that supports .NET (Windows, Linux, macOS). |
| Multiple output formats | Save as XLSX, XLS, CSV, PDF, XPS, PNG, JPEG, etc. |
| High fidelity rendering | Charts look identical to those created in Microsoft Excel. |
| Performance‑optimized | Handles large datasets with low memory footprint. |
Getting Started
Download the latest Aspose.Cells for .NET from the releases page.
Install via NuGet:
PM> Install-Package Aspose.CellsAdd a reference to
Aspose.Cellsin your C# project.
Now you’re ready to generate a 3‑D 100 % stacked column chart programmatically.
Create a Column3D100PercentStacked Chart in Excel using C#
Below is a complete, self‑contained C# example that:
- Creates a new workbook.
- Populates sample sales data for three products across four quarters.
- Adds a Column3D100PercentStacked chart.
- Customizes chart title, axis titles, legend, and data labels.
- Saves the workbook to an XLSX file.
Explanation of Key Steps
| Step | What it does |
|---|---|
| Create workbook & worksheet | Starts with an empty Excel file and a sheet named SalesData. |
| Populate data | Inserts quarterly sales figures for three products. The layout matches what the chart expects (categories in column A, series in columns B‑D). |
| Add chart | Calls Charts.Add with ChartType.Column3D100PercentStacked. The chart occupies rows 7‑25 and columns 0‑8 on the worksheet. |
| Add series | Each product’s data is added as a separate series. The true flag tells Aspose.Cells to pull the series name from the first cell of the range. |
| Category data | Links the X‑axis labels (quarter names) to column A. |
| Customize | Sets titles, moves the legend, and enables data labels that display percentages on each stacked segment. |
| Save | Writes the workbook to Column3D100PercentStacked_Chart.xlsx. The file can be opened directly in Excel or converted to other formats. |
Free Resources
- Developer’s Guide – Comprehensive tutorials and API references: https://docs.aspose.com/cells/net/
- Aspose.Cells Live Demo – Quickly test chart creation online: https://products.aspose.app/cells/family
- API Reference – Detailed class and member documentation: https://reference.aspose.com/cells/net/
- How‑To Articles – Explore more chart types, pivot tables, and data manipulation: https://blog.aspose.com/categories/aspose.cells-product-family/
Get a Free License
Start experimenting with Aspose.Cells without cost. Obtain a temporary free license from the Aspose temporary license page. This unlocks the full feature set, removes evaluation watermarks, and allows you to deploy your solution in production after purchasing a permanent license.
// Example of applying a temporary license (place this at the beginning of your app)
var license = new Aspose.Cells.License();
license.SetLicense("Aspose.Total.NET.lic"); // Path to your temporary .lic file
Conclusion
A Column3D100PercentStacked chart provides a clear, visually appealing way to compare the relative contribution of multiple data series across categories. With Aspose.Cells for .NET you can generate such charts programmatically, customize every element, and export the result to a variety of formats—all without requiring Microsoft Excel. Use the provided sample code as a foundation, adapt the data source to your needs, and integrate chart generation into your reporting pipelines.
For further assistance, visit the Aspose.Cells Support Forum: https://forum.aspose.com/c/cells/9
Happy coding!