HTML
JPG
PDF
XML
XLSX
XLSX
Create Map Chart in XLSX Documents via C#
Programmatically generate geographic Map charts in Microsoft Excel XLSX workbooks using high‑performance Aspose.Cells for .NET APIs.
Generating an Excel XLSX workbook that contains a Map chart (geographic visualization) is straightforward with Aspose.Cells for .NET. No Microsoft Office installation is required; the library handles all chart creation, rendering, and saving on the server side.
How to Create a Map Chart in XLSX via C#
The following steps demonstrate how to add a Map chart to a worksheet:
- Include the
Aspose.Cellsnamespace. - Create a
Workbookinstance. - Populate the worksheet with geographic data (e.g., country names and values).
- Insert a chart of type Map.
- Bind the data series to the geographic range.
- Configure chart properties (title, color style, etc.).
- Save the workbook as 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, and Azure. Development can be performed with Visual Studio, Visual Studio Code, or any other .NET‑compatible IDE.
- Install via NuGet:
nuget install Aspose.CellsorInstall-Package Aspose.Cells. - Alternatively, download the full library from the Aspose.Cells download page.
Create Map Chart in XLSX - C#
Why Choose Aspose.Cells for Map Charts?
- No Microsoft Excel required – Generate, modify, and render charts entirely on the server.
- Full compatibility with all major Excel versions (XLS, XLSX, XLSM, XLSB, etc.).
- High‑performance rendering – Export the same chart to PDF, PNG, or HTML without loss of quality.
- Extensive customization – Control titles, legends, color gradients, and data labels programmatically.
Aspose.Cells for .NET is a powerful spreadsheet library that enables developers to create, edit, convert, render, and print Excel files across platforms. Its rich API set supports a wide variety of chart types—including the geographic Map chart—making it an ideal choice for data‑driven applications, reporting services, and business intelligence solutions.
XLSX What is XLSX File Format?
XLSX is the modern Open XML format for Microsoft Excel workbooks. It stores data, formatting, and charts (including Map charts) as a collection of XML files within a ZIP package, allowing efficient reading, writing, and streaming operations.
Read More