We need to update xlsx sheet using python script which do some calcualtion and update one worksheet. I choose openpyxl as it supoort writing/updating xlsx File. In the Excel she
Any graphs that exist in the document before opening will be deleted after saving. The only way around this ( i know of) is to create the chart in code.
Here is the documentation on how to create a chart in openpyxl
The example is a little broken, compare to this instead.
values = Reference(ws, (1, 1), (1, 95))
series = Series(values, title="Sample" )
chart = LineChart()
chart.append(series)
ws.add_chart(chart)
Openpyxl does not support graphs or chart as of now