HTML JPG PDF XML XLSX
  Product Family
XLSX

Create Sunburst Chart in XLSX Documents via C#

High‑performance, server‑side creation of hierarchical Sunburst charts in Excel workbooks using Aspose.Cells for .NET.

Generating a Microsoft Excel XLSX workbook that contains a Sunburst chart is straightforward with Aspose.Cells for .NET. The library enables you to build hierarchical visualizations without requiring Microsoft Office on the server. This article walks you through the steps required to create a Sunburst chart, demonstrates a complete runnable C# example, and explains the key concepts behind the chart type.

How to create Sunburst chart in XLSX via C#

The Sunburst chart visualizes hierarchical data (levels and sub‑levels) as concentric rings. Follow the steps below to generate a Sunburst chart programmatically.

  1. Add the Aspose.Cells namespace to your class.
  2. Create a Workbook instance.
  3. Populate the worksheet with hierarchical data (categories, sub‑categories, values).
  4. Insert a Sunburst chart and bind it to the populated range.
  5. Configure chart options (title, style, data labels, etc.).
  6. Save the workbook as an XLSX file.

System Requirements

The solution runs on any operating system that supports .NET Framework, .NET Core, .NET 5/6/7, Windows Azure, Mono or Xamarin. Development can be performed with Visual Studio, Visual Studio Code, Rider or any other C# IDE.

  • Install the NuGet package:

    nuget install Aspose.Cells
    

    or via the Package Manager Console:

    Install-Package Aspose.Cells
    
  • Alternatively, download the library from the Aspose.Cells download page.

 

Create Sunburst Chart in XLSX – C#

 
Aspose.Cells for .NET is a powerful spreadsheet programming library that enables developers to create, modify, convert, render, and print Excel files across platforms. In addition to classic cell manipulation, the API provides rich support for a broad set of chart types—including Sunburst, Treemap, Funnel, and more—allowing you to deliver sophisticated visual analytics without Microsoft Excel installed on the server.

XLSX What is XLSX File Format?

XLSX is the modern Open XML format for Microsoft Excel workbooks. It stores data, formatting, and objects (including charts) in a zip package containing a collection of XML parts, making it highly portable and suitable for cloud‑based processing.

Read More