IRONSOFTWARE
  • PRODUCTS
  • ENTERPRISE
  • FREE TOOLS
  • USE CASES
  • COMPANY
  • CONTACT US
205 N. Michigan Ave. Chicago, IL 60601, USA
+1 (312) 500-3060
CONTACT US
Icon Triangle related to 
									Create Excel Chart
  • Sales
  • Support
  • Partnerships
  • Corporate
Live Chat 24/5
  • En
      Icon Triangle related to 
									Create Excel Chart
    • English
    • Español
    • Deutsch
    • Français
    • 日本語
    • 简体中文
    • 繁體中文
  • Icon Triangle related to 
									Create Excel Chart
    • Customers Case Studies
    • Industry White Papers
    Icon Triangle related to 
									Create Excel Chart
    • About Us
      Icon Text Wearehiring related to 
									Create Excel Chart
    • Company News
      Icon Text Wearehiring related to 
									Create Excel Chart
    • Customers & Case Studies
      Icon Text Wearehiring related to 
									Create Excel Chart
    • Environmental Commitments
      Icon Text Wearehiring related to 
									Create Excel Chart
    • Startup Impact Grant
      Icon Text Wearehiring related to 
									Create Excel Chart
    • Beta Program
      Icon Text Wearehiring related to 
									Create Excel Chart
    • Year in Review: 2024
      Icon Text Wearehiring related to 
									Create Excel Chart
    • Careers
      Icon Text Wearehiring related to 
									Create Excel Chart
    • Consulting Partners
    • Content Creators
    • Resellers Partners
    • Technology Partners
    • Microsoft MVPs
    • Affiliates
    • Global Resellers
    • Merchant of Record
    • Trust Center
    • Sales
    • Support
    • Partnerships
    • Corporate
    Live Chat 24/5
    Icon Triangle related to 
									Create Excel Chart
    Icon Logo Ironsuite related to 
									Create Excel Chart

    IRONSUITE

    All 10 for the Price of 2

    Save 80% with Iron Suite
    Logo 1 Percent related to 
									Create Excel Chart
    Logo IronPDF
    Logo IronPDF

    Create, read, and edit PDFs

    Logo IronPPT
    Logo IronPPT

    Edit PowerPoint Files. No Office Interop required

    Logo IronQR
    Logo IronQR

    Read and write QR codes with ML detection

    Logo IronWebscraper
    Logo IronWebscraper

    Extract structured data from website

    Logo IronWord
    Logo IronWord

    Edit DOCX Word Files. No Office Interop required

    Logo IronOCR
    Logo IronOCR

    Image to text in 127 languages

    Logo IronPrint
    Logo IronPrint

    Customized Printing Files

    Logo IronXL
    Logo IronXL

    Edit Excel & CSV Files. No Office Interop required

    Logo IronBarcode
    Logo IronBarcode

    Read and write Barcodes

    Logo IronZIP
    Logo IronZIP

    Zip and unzip archives

    Icon Triangle related to 
									Create Excel Chart
    Icon Logo Ironsuite related to 
									Create Excel Chart
    Icon Text Ironsuite related to 
									Create Excel Chart

    Enterprise Licensing

    Icon Logo Ironsecuredoc related to 
									Create Excel Chart
    Icon Text Ironsecuredoc related to 
									Create Excel Chart

    PDF Security & Compliance

    Icon Triangle related to 
									Create Excel Chart
    Icon Logo Irondrawing related to 
									Create Excel Chart
    Icon Text Irondrawing related to 
									Create Excel Chart

    System.Drawing.Common Replacement

    Icon Logo Ironfreetools related to 
									Create Excel Chart
    Icon Text Ironfreetools related to 
									Create Excel Chart

    Free Software Development Tools

    IronXL for Python - Excel Library for C# .NET
    for
    Python
    • .NET
    • Python
    • Home
    • Licensing
      • Licensing
      • EULA
      • Support & Update Extensions
      • License Upgrades
      • How to Use License Keys
      • Start Free Trial
    • Docs
      • Get Started
      • Code Examples
      • Tutorials
      • How-Tos
      • Troubleshooting
      • Product Updates
    Search
    Ctrl
    K
    Start for Free
    pip Download Start Free Trial
    Logo Icon related to 
									Create Excel Chart
    IronXL for Python - Excel Library for C# .NET
    for
    • .NET
    • Python
    • IRONSOFTWARE HOME
    • PRODUCTS
      • IRONSUITE

      • IRONPDF
        UPDATED
      • IRONWORD
      • IRONXL
      • IRONPPT
      • IRONOCR
      • IRONBARCODE
      • IRONQR
      • IRONZIP
      • IRONPRINT
      • IRONWEBSCRAPER
    • ENTERPRISE
      • IRONSUITE ENTERPRISE
      • IRONSECUREDOC
    • OPEN SOURCE
      • IRONDRAWING
      • IRONFREETOOLS
    • ABOUT US
      • About Us
      • Company News
      • Customers
      • Environmental Commitments
      • Beta Program
      • Year in Review: 2024
      • Live Chat
      • Global Resellers
      • Join our team
    • CONTACT US
    • HOME
    • LICENSING
      • Licensing
      • EULA
      • Support & Update Extensions
      • License Upgrades
      • How to Use License Keys

      • Start Free Trial
    • DOCS
      • Get Started
      • Code Examples
      • Tutorials
      • How-Tos
      • Troubleshooting
      • Product Updates
    Message icon
    IronXL Code Example
    Workbooks
    Create or Load Spreadsheets
    • Create a new Excel File
    • Load Excel Files without Interop
    Save or Export Formats
    • Export Excel to CSV, XML, HTML, XLSX
    • Convert Spreadsheet File Types
    • Convert Excel to HTML
    Edit Workbooks
    • Edit Excel Metadata from Python
    • Protect Excel Files
    • Excel Print Setup
    Worksheets
    Edit Formulas
    • Excel Formulas in C#
    Sort Data
    • Sort Excel Ranges in C#
    • Select Excel Range
    Create and Edit Charts
    • Create Excel Chart
    Edit Layout
    • Freeze Panes in Excel
    • Auto Adjust Rows & Columns Size
    Edit Worksheets
    • Insert Rows & Columns into Excel in Python
    • Group & Ungroup Excel Rows/Columns in Python
    • Repeat Excel Rows & Columns
    • Copy Excel Worksheets
    • Add, Extract & Remove Worksheet Images
    Cell Ranges
    Cell Range Functions
    • Combine Excel Ranges
    Style Cells
    • Style Excel Cell Borders & Fonts
    Maths Functions
    • Aggregate Excel Functions
    Set Cell Data Formats
    • Excel Number Format
    • Excel Conditional Formatting
    Create Excel Chart
    from ironxl import *
    
    # Load the Excel workbook
    workbook = WorkBook.Load("test.xlsx")
    worksheet = workbook.DefaultWorkSheet
    
    # Set the chart type and its position on the worksheet.
    chart = worksheet.CreateChart(ChartType.Line, 10, 10, 18, 20)
    
    # Add the series to the chart
    # The first parameter represents the address of the range for the horizontal(category) axis.
    # The second parameter represents the address of the range for the vertical(value) axis.
    series = chart.AddSeries("B3:B8", "A3:A8")
    
    # Set the chart title.
    series.Title = "Line Chart"
    
    # Set the legend position.
    # Can be removed by setting it to None.
    chart.SetLegendPosition(LegendPosition.Bottom)
    
    # We can change the position of the chart.
    chart.Position.LeftColumnIndex = 2
    chart.Position.RightColumnIndex = chart.Position.LeftColumnIndex + 3
    
    # Plot all the data that was added to the chart before.
    # Multiple calls to this method lead to plotting multiple charts instead of modifying the existing chart.
    # Yet there is no possibility to remove a chart or edit its series/position.
    # We can just create a new one.
    chart.Plot()
    
    # Save changes with the created line chart
    workbook.SaveAs("CreateLineChart.xlsx")

    Create Excel Chart

    Related Docs Links

    Ready to get started? Version: 2025.4 just released

    Start for Free
    pip Download Start Free Trial
    View Licenses >
    Try IronXL for Free
    Get Set Up in 5 Minutes
    Icon Lightbulb related to 
									Create Excel Chart
    Python Module Download for Excel
    Install with pip
    Version: 2025.4
     pip install IronXL
    https://pypi.org/project/IronXL/
    1. Download and install Python 3.7+.
    2. Install pip from pypi.org if it isn't installed already.
    3. Execute the above command in the terminal.
    Python PDF Module
    Download Module
    Version: 2025.4
    Download Now
    Manually install into your project
    1. Download the package
    2. Run this command from the terminal
      pip install IronXL-2025.4-py37-none-win_amd64.whi
    Licenses from $749

    Have a question? Get in touch with our development team.

    15 1000 1
    PyPi Logo
    Now you've installed with Pypi
    Your browser is now downloading IronXL

    Next step: Start free 30-day Trial

    No credit card required

    • Test in a live environment
    • Fully-functional product
    • 24/5 technical support
    Get your free 30-day Trial Key instantly.
    Thank you.
    If you'd like to speak to our licensing team:

    badge_greencheck_in_yellowcircle
    The trial form was submitted
    successfully.

    Your trial key should be in the email.
    If it is not, please contact
    support@ironsoftware.com

    Schedule a call
    Have a question? Get in touch with our development team.
    No credit card or account creation required
    15 1000 1
    PyPi Logo
    Now you've installed with Pypi
    Your browser is now downloading IronXL

    Next step: Start free 30-day Trial

    No credit card required

    • Test in a live environment
    • Fully-functional product
    • 24/5 technical support
    Thank you.
    View your license options:
    Thank you.
    If you'd like to speak to our licensing team:
    View Licensing
    Schedule a call
    Have a question? Get in touch with our development team.
    Have a question? Get in touch with our development team.
    ironxl_for_python

    Get started for FREE

    No credit card required

    Test in a live environment

    Test in production without watermarks.
    Works wherever you need it to.

    bullet_test
    Fully-functional product

    Get 30 days of fully functional product.
    Have it up and running in minutes.

    bullet_calendar
    24/5 technical support

    Full access to our support engineering team during your product trial

    bullet_support
    Support Team Member 6 related to 
									Create Excel Chart									Support Team Member 3 related to 
									Create Excel Chart									Support Team Member 14 related to 
									Create Excel Chart									Support Team Member 4 related to 
									Create Excel Chart									Support Team Member 2 related to 
									Create Excel Chart
    ironxl_for_python
    Get your free 30-day Trial Key instantly.

    bullet_checkedNo credit card or account creation required

    badge_greencheck_in_yellowcircle
    The trial form was submitted
    successfully.

    Your trial key should be in the email.
    If it is not, please contact
    support@ironsoftware.com

    Trusted by Millions of Engineers Worldwide
    • aetna_logo
    • wwf_logo
    • nasa_logo
    • usda_logo
    • 3m_logo
    • tesla_logo
    ironxl_for_python

    Get started for FREE

    No credit card required

    Test in a live environment

    Test in production without watermarks.
    Works wherever you need it to.

    bullet_test
    Fully-functional product

    Get 30 days of fully functional product.
    Have it up and running in minutes.

    bullet_calendar
    24/5 technical support

    Full access to our support engineering team during your product trial

    bullet_support
    Support Team Member 6 related to 
									Create Excel Chart									Support Team Member 3 related to 
									Create Excel Chart									Support Team Member 14 related to 
									Create Excel Chart									Support Team Member 4 related to 
									Create Excel Chart									Support Team Member 2 related to 
									Create Excel Chart
    ironxl_for_python
    Get your free 30-day Trial Key instantly.
    Install with pip
    View Licensing

    Licenses from $749. Have a question? Get in touch.

    Trusted by Millions of Engineers Worldwide
    • aetna_logo
    • wwf_logo
    • nasa_logo
    • usda_logo
    • 3m_logo
    • tesla_logo
    Experience the full power of IronXL Start Free Trial
    Logo 1 Percent related to 
									Create Excel Chart
    Textlogo Iron Suite related to 
									Create Excel Chart

    IronXL for Python
    is a part of IRONSUITE

    10 .NET API products for your office documents

    Get 10 products for the price of 2   Start Free Trial
    • Icon Hash related to 
									Create Excel Chart
      ironpdf_logo
      - Create, read, and edit PDFs. HTML to PDF for .NET.
    • Icon Hash related to 
									Create Excel Chart
      ironword_logo
      - Edit DOCX Word Files. No Office Interop required.
    • Icon Hash related to 
									Create Excel Chart
      ironxl_logo
      - Edit Excel & CSV files. No Office Interop required.
    • Icon Hash related to 
									Create Excel Chart
      ironppt_logo
      - Create, read, and edit presentations. No Office Interop required.
    • Icon Hash related to 
									Create Excel Chart
      ironocr_logo
      - OCR (extract text from images) in 127 languages.
    • Icon Hash related to 
									Create Excel Chart
      ironbarcode_logo
      - Read and write QR & Barcodes.
    • Icon Hash related to 
									Create Excel Chart
      ironqr_logo
      - Read and write QR codes.
    • Icon Hash related to 
									Create Excel Chart
      ironzip_logo
      - Zip and unzip archives.
    • Icon Hash related to 
									Create Excel Chart
      ironprint_logo
      - Print documents in .NET applications.
    • Icon Hash related to 
									Create Excel Chart
      ironwebscraper_logo
      - Scrape structured data from websites.
    1% for the Planet
    IronXL for Python
    is a part of IRONSUITE

    10 .NET API products for your office documents

    Get 10 products for the price of 2
       Start Free Trial 
    • ironpdf_logo
      - Create, read, and edit PDFs. HTML to PDF for .NET.
    • ironword_logo
      - Edit DOCX Word Files. No Office Interop required.
    • ironxl_logo
      - Edit Excel & CSV files. No Office Interop required.
    • ironppt_logo
      - Create, read, and edit presentations. No Office Interop required.
    • ironocr_logo
      - OCR (extract text from images) in 127 languages.
    • ironbarcode_logo
      - Read and write QR & Barcodes.
    • ironqr_logo
      - Read and write QR codes.
    • ironzip_logo
      - Zip and unzip archives.
    • ironprint_logo
      - Print documents in .NET applications.
    • ironwebscraper_logo
      - Scrape structured data from websites.
    IronXL for Python

    Search

    CtrlK

    Documentation

    • Code Examples
    • How-Tos
    • Blog
    • Features
    • Credits

    Tutorials

    • Get Started
    • Read an Excel File

    Licensing

    • Buy a License
    • Find a Reseller
    • Product Update Renewals
    • How to Use License Keys
    • EULA

    Try IronXL for Python Free

    • Download with pip
    • Start Free Trial
    1. IronXL for Python
    2. Code Examples
    3. Create Excel Line Chart
    Back to top
    Iron Software
    205 N. Michigan Ave. Chicago, IL 60601 USA +1 (312) 500-3060
    • About Us
    • News
    • Customers
    • Careers
    • Academy
    • Contact Us
    • English
      • English
      • Español
      • Deutsch
      • Français
      • 日本語
      • 简体中文
      • 繁體中文
    Github related to 
									Create Excel Chart									Youtube related to 
									Create Excel Chart									Twitter X related to 
									Create Excel Chart									Facebook related to 
									Create Excel Chart									Linkedin related to 
									Create Excel Chart
    Slack Icon related to 
									Create Excel Chart									Join Iron Slack

    Supporting Teamseas

    Copyright © Iron Software LLC 2013-2025

    • Terms
    • Privacy
    • Cookie