学Python,用RPA
艺赛旗RPA2020.1版本 正在免费下载使用中,欢迎下载使用
www.i-search.com.cn/index.html?from=line1
chart_col = workbook.add_chart({‘type’: ‘line’})
chart_col.add_series({
# 这里的sheet1是默认的值,因为我们在新建sheet时没有指定sheet名
# 如果我们新建sheet时设置了sheet名,这里就要设置成相应的值
‘name’: ‘=Sheet1!$B
A
A
B
B$7’,
‘line’: {‘color’: ‘red’},
})
chart_col.add_series({
‘name’: ‘=Sheet1!$C
A
A
C
C$7’,
‘line’: {‘color’: ‘yellow’},
})
chart_col.set_title({‘name’: ‘The xxx site Bug Analysis’})
chart_col.set_x_axis({‘name’: ‘Test number’})
chart_col.set_y_axis({‘name’: ‘Sample length (mm)’})
chart_col.set_style(1)
worksheet.insert_chart(‘A10’, chart_col, {‘x_offset’: 25, ‘y_offset’: 10})
workbook.close()