modify the pie location for child space
parent
65e04f21c7
commit
b4bcefab11
|
@ -559,6 +559,7 @@ def generate_excel(report,
|
||||||
table_end_row_number = current_row_number
|
table_end_row_number = current_row_number
|
||||||
current_row_number += 1
|
current_row_number += 1
|
||||||
|
|
||||||
|
_col = ord(col) + 1
|
||||||
# Pie
|
# Pie
|
||||||
for i in range(0, ca_len):
|
for i in range(0, ca_len):
|
||||||
pie = PieChart()
|
pie = PieChart()
|
||||||
|
@ -576,7 +577,7 @@ def generate_excel(report,
|
||||||
s1.dLbls.showVal = True
|
s1.dLbls.showVal = True
|
||||||
s1.dLbls.showPercent = True
|
s1.dLbls.showPercent = True
|
||||||
chart_cell = ''
|
chart_cell = ''
|
||||||
char_col = chr(ord('E') + i*2)
|
char_col = chr(_col + i*2)
|
||||||
|
|
||||||
chart_cell = char_col + str(chart_start_row_number)
|
chart_cell = char_col + str(chart_start_row_number)
|
||||||
ws.add_chart(pie, chart_cell)
|
ws.add_chart(pie, chart_cell)
|
||||||
|
|
Loading…
Reference in New Issue