VIDEOS

How to Create and Edit Excel Charts in C#

Regan Pun
Regan Pun
April 20, 2025
Share:


In this tutorial, you will learn how to create and edit Excel charts using the Iron XL library within a C application. Start by ensuring the Iron XL Nougat package is installed in your project. Import the Iron XL namespace in your program CS file and set the license key. Load an Excel workbook using the workbook.load method, and retrieve the default worksheet for chart creation. Create a column chart with the worksheet.create chart method, specifying its position and size. Add series to the chart and customize the title and legend position. Save the chart as 'columnchart.xlsx'. You can also create line and pie charts by specifying chart types. To edit existing charts, load them from a file, adjust properties like legend position and title, and save the changes. Additionally, charts can be removed using the remove chart method. By following these steps, you can efficiently create, customize, and edit Excel charts in your C applications using Iron XL. Subscribe for more tutorials from Iron Software and explore the power of Iron XL by signing up for a trial and downloading the package.

Get stated with IronXL now.
green arrow pointer

Regan Pun
Software Engineer
Regan graduated from the University of Reading, with a BA in Electronic Engineering. Before joining Iron Software, his previous job roles had him laser-focused on single tasks; and what he most enjoys at Iron Software is the spectrum of work he gets to undertake, whether it’s adding value to sales, technical support, product development or marketing. He enjoys understanding the way developers are using the Iron Software library, and using that knowledge to continually improve documentation and develop the products.
< PREVIOUS
How to Edit Workbook Metadata in C#
NEXT >
How to Edit Excel File in C#