Home > other > Openpyxl production Chart X Y upside down
Openpyxl production Chart X Y upside down
Time:09-18
Consult BBS inside the great god, and how to implement the following Chart with openpyxl? I Excel in data is horizontally arranged, don't know how to Reference data in the Reference,
CodePudding user response:
I also encountered this problem, only the form first. T transposed, can use refrence, or data is quoted wrong, hope to have other solutions to bosses
CodePudding user response:
With reference to the official or I this https://blog.csdn.net/weixin_45903952/article/details/105126839#comments_12157166
CodePudding user response:
@ weixin_45903952 With reference to your post, I do out is like this, The from openpyxl import Workbook The from openpyxl import load_workbook The from openpyxl. Chart import BarChart Series, the Reference
Wb=load_workbook (' a55aa. XLSX) Ws=wb. Get_sheet_by_name (" New Title ")