I have a base xlsx file with several tabs and charts. When I work on this file with POI, I need to change the sheet names. Unfortunately, the data referenced by the chart keeps the reference to the old chart Name when I use XSSFWorkbook.setSheetName(). Related bugs have been fixed for formulas and named ranges, but apparently not for Charts.
As stated in http://poi.apache.org/spreadsheet/limitations.html support for charts is very limited currently, therefore this would likely involve a bit more work to prepare more fundamental support for handling charts first...
I found valuable code in #54470 that can be applied to fix this issue. I am working on it.
resolved by r1842548