-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When rename the sheet it removes the chart data from sheet. #324
Comments
@bharatsewani1993 @xuri
If you remove Sheet1 from there chart fills properly:
|
Yes, in order to solve this problem we need to check and update all references (such as |
@xuri If you drop "Sheet1!" from source definition everything will still work even after renaming the sheet. |
hi, |
Hi, I cannot confirm that removing the From my point of view it looks like there is an issue with sheet names that contains blanks.
The code makes a new xls-file and adds three sheets with the sample chart and the last sheet does contain any data in the sheet. Sheet names with blanks works fine for |
Description
I am trying to create a chart on excel sheet using AddChart() function. I executed the code successfully and It returned me the file as I am expecting it to be. But when before saving the file I want to rename the sheet name using xlsx.SetSheetName("Sheet1","New Name") It creates a file with empty chart.
Steps to reproduce the issue:
xlsx.SetSheetName("Sheet1","customsheetname")
and it will save the file with empty chart.
Output of
go version
:go version go1.9.4 linux/amd64
Excelize version or commit ID:
9a6f66a
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
The text was updated successfully, but these errors were encountered: