Thanks for the template Excel file and screenshot.
We will work on to devise code snippet to accomplish your task. In the meantime, please see the document with example code on how to create a combo chart. Please refer to it and write your own code for your required chart.
I have the below issue - Whenever I have the values for both stacked bar and clustered bar with same values and the chart.calculate() method execution takes forever to complete.
Please find the attached code snippet I have used as well as the updated input file to be used.
@Thilakbabu
By testing with sample code and file on the latest version v25.4, we can reproduce the issue. Chart.Calculate() method takes infinite time for stacked bar and clustered bar with same values.
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-46353
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.
This is to inform you that your issue (Ticket ID: “CELLSJAVA-46353”) has been resolved. The fix/enhancement will be included in an upcoming release (Aspose.Cells v25.5) that we plan to release in the first half of May 2025. You will be notified when the next version is released.
I tested the following sample code with the template file (attached) with Aspose.Cells for Java v25.6 and it works fine fine and instantly. There is no delay on Chart.calculate() method.
e.g., Sample code:
Please find attached the input and output XLSX files in the zipped archive for your reference. files1.zip (26.1 KB)
Kindly ensure that you are using the latest version or fix. If the issue persists with Aspose.Cells for Java v25.6, we would appreciate it if you could share your sample runnable code and the template Excel file to help us reproduce the issue on our end. We will check your issue soon.
@amjad.sahi
We would like to understand what updates have been made on chart.calculate() to resolve this issue. Because we have the same scenario but with different data where this issue is still occurring and if you could share insights on some property or axis etc which has been updated recently, that would be helpful.
For e.g. if you have updated something related to tickmark labels position then we would try to find reasons on our end corresponding to that and it would also help us to create a sample standalone program to share with you guys as well because we are not able to create a sample program where the issue is reproducible yet.
Thanks
Hi @manavjaiswal
The issue is that some special data may cause an infinite loop during calculation, and we have optimized the calculation. If you encounter similar problems, please provide more files and we will further analyze them, thank you.