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.
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.
- Add the
Aspose.Cellsnamespace to your class. - Create a
Workbookinstance. - Populate the worksheet with hierarchical data (categories, sub‑categories, values).
- Insert a Sunburst chart and bind it to the populated range.
- Configure chart options (title, style, data labels, etc.).
- 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.Cellsor via the Package Manager Console:
Install-Package Aspose.CellsAlternatively, download the library from the Aspose.Cells download page.
Create Sunburst Chart in XLSX – C#
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