Visualizing proportional data with a three‑dimensional cone chart can make your reports stand out. In this article we show you how to create a Cone100PercentStacked chart—an eye‑catching 100 % stacked cone—using C# and Aspose.Cells for .NET. The guide contains a complete, ready‑to‑run code sample that populates sample data, builds the chart, customizes axes and titles, and finally saves the workbook in XLSX format.
This article covers the following topics:
- C# Excel Library to Create Cone100PercentStacked Charts
- Create a Cone100PercentStacked Chart in Excel using C#
- Free Resources
- Conclusion
- See Also
C# Excel Library to Create Cone100PercentStacked Charts
Aspose.Cells for .NET is a powerful, feature‑rich library that enables developers to create, modify, and render Excel files without requiring Microsoft Office. It fully supports all modern chart types, including the Cone100PercentStacked chart.
Key benefits of using Aspose.Cells for chart creation:
- Full‑featured API – Access every chart property (type, series, axes, legends, etc.).
- No COM dependencies – Works on any .NET platform (Windows, Linux, macOS).
- High performance – Handles large workbooks and data sets efficiently.
- Multiple format support – Save as XLSX, XLS, CSV, PDF, PNG, and more.
Get started in three easy steps:
Download the latest release from the Aspose Cells .NET releases page.
Install the NuGet package:
PM> Install-Package Aspose.CellsReference the library in your project and start coding.
Create a Cone100PercentStacked Chart in Excel using C#
Below is a complete, self‑contained C# program that:
- Creates a new workbook.
- Populates sample data for three product categories.
- Adds a Cone100PercentStacked chart.
- Customizes the chart title, axis titles, and legend.
- Saves the workbook as
Cone100PercentStackedChart.xlsx.
Note – The code targets .NET 6.0 (or later) and uses the latest Aspose.Cells API.
How the code works
| Step | Purpose |
|---|---|
| 1 | Instantiates a Workbook and retrieves the first worksheet. |
| 2 | Writes a header row and four rows of sample sales data. |
| 3 | Inserts a chart of type ChartType.Cone100PercentStacked. |
| 4 | Sets the chart’s data range (NSeries.Add) and category axis (CategoryData). |
| 5 | Adds readable series names, axis titles, and formats the value axis as a percentage. |
| 6 | Positions the legend at the bottom and saves the workbook as an XLSX file. |
Running the program will generate an Excel file that contains a beautifully rendered 100 % stacked cone chart—perfect for presentations that need a dramatic visual impact.
Free Resources
- Developer’s Guide – Comprehensive documentation for Aspose.Cells: https://docs.aspose.com/cells/net/
- Online Applications – Try chart generation without coding: https://products.aspose.app/cells/family
- API Reference – Detailed class and member descriptions: https://reference.aspose.com/cells/net/
- How‑To Articles – Additional chart‑related tutorials: https://blog.aspose.com/categories/aspose.cells-product-family/
Conclusion
Creating a Cone100PercentStacked chart with Aspose.Cells for .NET is straightforward. The library’s rich API lets you build, customize, and export high‑quality charts entirely programmatically—no Microsoft Office installation required. Use the code sample above as a starting point, adapt the data source to suit your business needs, and integrate the generated workbook into your reporting pipelines.
If you have any questions or need further assistance, feel free to visit the Aspose.Cells Support Forum.