Merge branch 'PR50' into develop

pull/51/head
13621160019@163.com 2021-07-14 19:39:29 +08:00
commit 14e32e5c8c
1 changed files with 2 additions and 1 deletions

View File

@ -559,6 +559,7 @@ def generate_excel(report,
table_end_row_number = current_row_number
current_row_number += 1
_col = ord(col) + 1
# Pie
for i in range(0, ca_len):
pie = PieChart()
@ -576,7 +577,7 @@ def generate_excel(report,
s1.dLbls.showVal = True
s1.dLbls.showPercent = True
chart_cell = ''
char_col = chr(ord('E') + i*2)
char_col = chr(_col + i*2)
chart_cell = char_col + str(chart_start_row_number)
ws.add_chart(pie, chart_cell)