Create Histogram Chart in XLSX Documents via C#
High‑performance creation of Microsoft Excel XLSX spreadsheets with Histogram chart support using server‑side .NET APIs.
How to create a Histogram chart in XLSX via C#
The following steps demonstrate how to insert a Histogram chart into an Excel workbook programmatically.
- Include the Aspose.Cells namespace in your class file.
- Create a Workbook instance.
- Access the first worksheet and fill it with sample data.
- Add a Chart of type ChartType.Histogram.
- Define the data range for the chart.
- Customize the chart title, legend, and style (optional).
- Save the workbook as an XLSX file.
System Requirements
The solution runs on any platform that supports .NET Standard 2.0, .NET Core, .NET Framework, .NET 5/6/7, Windows Azure, Mono or Xamarin. Development can be performed with Visual Studio, Visual Studio Code or any other .NET‑compatible IDE.
Install the package from the command line:
nuget install Aspose.Cellsor via the Package Manager Console:
Install-Package Aspose.CellsAlternatively, download the offline MSI installer or the ZIP containing all DLLs from the Aspose.Cells .NET download page.
Create Histogram Chart in XLSX – C#
XLSX What is XLSX File Format?
XLSX is the modern Microsoft Excel file format introduced with Office 2007. It follows the Open Packaging Conventions (OPC) defined in ECMA‑376 and stores spreadsheet data as a collection of XML parts compressed in a ZIP archive.
Read More