we are using Aspose.Cells to create some chart in png format. With version 126.96.36.199 the export of the chart was as expected. With version 188.8.131.52 the height of the chart is smaller.
PFA two png file and a sample project to reproduce this behaviour.
Thanks for reporting this issue and provide us a sample project and files.
We have logged this issue in our database and we will fix it asap.
This issue has been logged as CELLSNET-31195.
We looked into you code segment and noticed you use “xlsChart.Calculate()” and then don’t use the chart objects. We suggest you kindly remove the line of code regarding Calculate() method. Genenally, Excel files don’t have detailed information about the position (e.g of Plot Area or Legend) and MinValue or MaxValue, MajorUnit etc.(of Categry Axis or Value Axis). We provide the Calculate() method that tries to calculate the values and at the same time may change the chart object with the values. If the calculated values are not proper, the chart will be brought to a wrong state. So, we suggest, in normal or unnecessary case, don’t call Calculate() method. Also, we will provide a version soon to fix the bug in the Calculate() method.
Please try the latest fixed version. Please download: Aspose.Cells for .NET v184.108.40.206
Your issue should be fixed now.