HTML
JPG
PDF
XML
XLSX
XLSX
Create Bar3DClustered Chart in XLSX Documents via C#
Programmatically generate a high‑quality 3‑D clustered bar chart in Microsoft Excel using Aspose.Cells for .NET.
Generating a Microsoft Excel XLSX workbook that contains a Bar3DClustered chart is straightforward with Aspose.Cells for .NET. The library lets you create, style and populate charts entirely on the server side—no Microsoft Office installation required. This article demonstrates how to build a 3‑D clustered bar chart, bind it to source data, and customize its appearance using a few lines of C# code.
How to create Bar3DClustered chart in XLSX via C#
Follow the steps below to create a 3‑D clustered bar chart (Bar3DClustered) programmatically.
- Include the
Aspose.Cellsnamespace in your class file. - Create an instance of the Workbook class.
- Populate a worksheet with the data that will be visualized.
- Add a chart of type ChartType.Bar3DClustered.
- Set the data series range, chart title and optional formatting.
- Save the workbook to an XLSX file.
System Requirements
Aspose.Cells for .NET works on any platform that supports .NET Framework 4.0+, .NET Core 2.0+, .NET 5/6/7, Mono, Xamarin, or Azure Functions. Development can be performed with Visual Studio, Visual Studio Code, or any other C# IDE.
- Install via NuGet:
nuget install Aspose.CellsorInstall-Package Aspose.Cells. - Or download the offline MSI/ZIP from the Aspose.Cells download page.
Create Bar3DClustered Chart - C#
Aspose.Cells for .NET is a powerful spreadsheet API that enables developers to create, modify, convert, render and print Excel files without requiring Microsoft Office. It supports all major Excel formats (XLS, XLSX, XLSM, XLSB, CSV, HTML, PDF, etc.) and provides extensive charting capabilities, including 3‑D charts, sparklines, and conditional formatting.
XLSX What is XLSX File Format?
XLSX is the modern Open XML format for Microsoft Excel workbooks introduced with Office 2007. The format is a ZIP package that contains XML parts conforming to the ECMA‑376 standard. Aspose.Cells works directly with this package, allowing high‑performance reading and writing of XLSX files.
Read More