观看 David Jones,Agorus,与 Iron Suite 创造新的效益
观看 Milan Jovanović 使用 IronPDF
观看我们的团队演示产品
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")
pip install IronXL
pip install 产品名称-产品版本-py37-none-win_amd64.whi
无需信用卡
试用表单已成功提交。您的试用密钥应在电子邮件中。如果没有,请联系我们support@ironsoftware.com
您的试用密钥应在电子邮件中。如果没有,请联系我们support@ironsoftware.com
免费开始
在生产环境中测试,没有水印。在您需要的地方使用。
使用功能齐全的产品30天。几分钟内即可启动和运行。
在产品试用期间,全面访问我们的支持工程团队
无需信用卡或账户创建
您的试用密钥应该在邮件中。如果没有,请联系support@ironsoftware.com
许可证起价 $749。 有问题吗?联系我们。
预订无义务咨询
填写下面的表格或通过sales@ironsoftware.com
您的资料将始终保密。
版权所有 © Iron Software 2013-2025