When I tried exporting a range of cells containing an Excel Pie chart into JPEG file, I experienced something strange. My two test charts are generated from flat table data source.
As you notice, the Bar chart (FLAT_CHART_100) is quite well exported (excluding shadows behind bars but this is a detail). However, the Pie Chart (FLAT_CHART_101) definition is not respected : the serie is incorrect so the slices colors are shifted, and the semicolon separators became comma.
After an initial test, I reproduced the issue as you mentioned by using your template file. I found when rendering Excel chart into image (.jpeg), it produces wrong export. For example, the series are incorrect with the slices colors shifted. We need to evaluate your issue in details.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSJAVA-45423
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
I do not see semicolon when viewing the chart in MS Excel, see the screenshot on how the chart looks like on my end. sc_shot1.png (104.5 KB)
Could you please share the screenshot on how the chart is displayed on your end when viewing into MS Excel manually. Also, give us your environment details (OS, regional/locale settings, .NET framework version, MS Excel version and language settings, etc.).
I am not able to explain precisely, but it sounds like it is related to the bug I reported on this topic : Issue copying worksheet containing Pivot Table - #5 by GVA32156
An intermediate saving of the workbook is fixing the gap of commands expected before creating a clean copy, or in our case here before exporting a range of cells.
We have logged your screenshots and details with the existing ticket into our database. Please spare us little time to investigate your issue thoroughly. Hopefully we will figure out your issue soon.
Hello @amjad.sahi, has this bug been evaluated ? And also “New editing and saving of the workbook is fixing the problem.” mystery
Simply to know if the complexity is high to fix or not
Hi @GVA32156
Progress so far: we have made progress on the problem of the delimiter error, which we hope to fix in the next release. The problem of the color error in the pie chart is a bit more complicated, and we’re still analyzing it.
Hi @GVA32156
For the legend and color confusion problem, we solved the effect as follows. It’ll take effect in the next version(23.7). 230625.png (12.7 KB)
The problem with delimiters was resolved in the last version(23.6).