It edits the file and when I open the file it shows  The sample code(for C#) was provided here :- https://docs.microsoft.com/en-us/office/open-xml/how-to-insert-a-chart-into-a-spreadsheet
It edits the file and when I open the file it shows

The sample code(for C#) was provided here :- https://docs.microsoft.com/en-us/office/open-xml/how-to-insert-a-chart-into-a-spreadsheet