更改完成
parent
8bebedf6f1
commit
78f02914dc
|
@ -269,7 +269,8 @@ def generate_excel(report,
|
|||
|
||||
if has_ele_peak_flag:
|
||||
ws['B12'].font = title_font
|
||||
ws['B12'] = name+' 分时电耗'
|
||||
ws['B12'] = name+'分时用电成本'
|
||||
|
||||
|
||||
ws['B13'].fill = table_fill
|
||||
ws['B13'].font = name_font
|
||||
|
@ -280,7 +281,7 @@ def generate_excel(report,
|
|||
ws['C13'].font = name_font
|
||||
ws['C13'].alignment = c_c_alignment
|
||||
ws['C13'].border = f_border
|
||||
ws['C13'] = '分时电耗'
|
||||
ws['C13'] = '分时用电成本'
|
||||
|
||||
ws['B14'].font = title_font
|
||||
ws['B14'].alignment = c_c_alignment
|
||||
|
@ -323,7 +324,7 @@ def generate_excel(report,
|
|||
ws['C17'] = round(reporting_period_data['offpeaks'][0], 2)
|
||||
|
||||
pie = PieChart()
|
||||
pie.title = name+' 分时电耗'
|
||||
pie.title = name+'分时用电成本'
|
||||
labels = Reference(ws, min_col=2, min_row=14, max_row=17)
|
||||
pie_data = Reference(ws, min_col=3, min_row=13, max_row=17)
|
||||
pie.add_data(pie_data, titles_from_data=True)
|
||||
|
|
Loading…
Reference in New Issue