Create LineStackedWithDataMarkers Chart in XLSX via C#
Generate Microsoft Excel XLSX spreadsheets with a LineStackedWithDataMarkers chart programmatically using the high‑performance Aspose.Cells .NET API.
How to create LineStackedWithDataMarkers chart in XLSX via C#
Follow the steps below to add a LineStackedWithDataMarkers chart to a spreadsheet. The sample code demonstrates data preparation, chart creation, series configuration, and workbook saving.
- Include the Aspose.Cells namespace in your project.
- Create a Workbook instance.
- Populate the worksheet with sample data.
- Add a chart of type ChartType.LineStackedWithDataMarkers.
- Define the data series and category axis labels.
- Set a chart title and optional formatting.
- 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, .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.Cellsin the Package Manager Console. - Or download the full package from the Aspose.Cells downloads page.
Create LineStackedWithDataMarkers chart – C#
XLSX What is XLSX File Format?
XLSX is the default workbook format for Microsoft Excel. Based on the Open XML standard (ECMA‑376), an XLSX file is a ZIP archive that contains a collection of XML parts describing worksheets, styles, charts, and other workbook elements. Aspose.Cells works directly with this format, allowing high‑performance generation and manipulation of Excel files on any platform.
Read More