HTML JPG PDF XML XLSX
  Product Family
XLSX

Create Cone Chart in XLSX Documents via C#

High‑performance creation of Microsoft Excel Cone charts programmatically using server‑side .NET APIs.

Generating Microsoft Excel XLSX files with a Cone chart is straightforward with Aspose.Cells for .NET. The library lets you create, style, and populate charts without requiring Microsoft Office on the server.

How to create a Cone chart in XLSX via C#

A Cone chart (also known as a Pyramid chart) is useful for visualizing data where the width of each item represents a value. The following steps demonstrate how to add a Cone chart to a worksheet.

  1. Include the Aspose.Cells namespace in your class file.
  2. Create an instance of the Workbook class.
  3. Access the worksheet where the chart will be placed.
  4. Populate the worksheet with sample data.
  5. Add a Chart object of type ChartType.Cone.
  6. Set the chart’s position and size.
  7. Bind the chart to the data range.
  8. Apply optional formatting (title, legend, style).
  9. Save the workbook.

System Requirements

Supported on any platform that runs .NET Framework, .NET Core, .NET 5/6/7, Windows Azure, Mono, or Xamarin. Development can be performed with Microsoft Visual Studio, Rider, or any compatible IDE.

  • Install via NuGet: nuget install Aspose.Cells or Install-Package Aspose.Cells.
  • Or download the offline installer / DLL bundle from the Aspose.Cells download page .
 

Create a Cone chart in XLSX – C#

 
Aspose.Cells for .NET is a powerful spreadsheet processing library that enables developers to create, modify, convert, render, and print Excel files across platforms. It supports a full range of chart types—including the Cone chart—without the need for Microsoft Excel.

XLSX What is XLSX File Format?

XLSX is the Open XML format introduced with Microsoft Office 2007. It stores workbook data, styles, and chart definitions as ZIP‑compressed XML parts, making it easy to generate and manipulate programmatically.

Read More