Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

AsposeCells
AsposeCells

Posted on • Edited on

     

Create Microsoft Excel Line Chart in C#.NET

Chart is a graphical representation of data that enables user to easily understand the large quantity of data and relationships between parts of data. There are many types of charts available in Microsoft Excel and almost all of them are supported byAspose.Cells for .NET. Aspose.Cells can be used to create, edit and manipulate Excel spreadsheets almost in any platform without any need to install Microsoft Excel or without using any sort of Microsoft Office automation.

Article Description

The purpose of this article is to explain how developers can create Microsoft Excel Line Chart in C#.NET.

Supported Platforms

Aspose.Cells API supports all .NET frameworks e.g. .NET 2.0, .NET 3.5, .NET 4.0, .NET 7.0, .NET Core, .NET Standard 2.0, Xamarin etc. It is also available in other platforms e.g. Java, C++, Android, JavaScript, PHP etc. Besides,Aspose.Cells is available in Cloud as REST or RESTful APIs.

Types of Line Charts

There are various types of Line charts, some of them are listed below.

  • Line
  • Line Stacked
  • Line 100% Stacked
  • Line with Data Markers
  • Line Stacked with Data Markers
  • Line 100% Stacked with Data Markers

Sample Input Microsoft Excel Document

For demonstration, we will use the followingsample input Microsoft Excel document that contains the chart data. Here, column A contains the category axis data and other columns B, C and D contain chart series data.

Caption: Sample Input Microsoft Excel Document containing Chart Data.

Sample Input Microsoft Excel Document containing Chart Data.

Sample Code

The following sample code creates Microsoft Excel Line Chart by performing these steps.

  • Loadsample input Microsoft Excel document containing the chart data.
  • Create Line chart with specified dimensions.
  • Apply the two color gradient on the chart area.
  • Set the chart title and format it.
  • Add three vertical series, set their names and line weights.
  • Format various chart items e.g. plot area, value axis, category axis, major tick marks etc.
  • Save the workbook in XLSX format. You can also save it in other formats e.g. XLS, XLSB, XLSM etc.

Output Microsoft Excel Line Chart by Aspose.Cells

The following snapshot shows theOutput Microsoft Excel Line Chart generated by Aspose.Cells with the code given above. Similarly, you can create all sorts of Line charts with Aspose.Cells API easily.

Caption: Microsoft Excel Line Chart created by Aspose.Cells API.

Microsoft Excel Line Chart created by Aspose.Cells API.

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
rupam___bd profile image
Jark Berg
  • Joined

I can suggest you to use zetexcel.com.They develop high performance applications to Create, Edit, Convert or Print Excel spreadsheet file formats without requiring Microsoft Excel.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Manipulate Excel Spreadsheets in Any Platform using Aspose.Cells API.Develop applications to Create, Edit, Convert or Render Excel spreadsheets, using our APIs for .NET, Java, C++ and Android.
  • Joined

More fromAsposeCells

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp