we are using Aspose.Cells to create some chart in png format. With version 7.0.1.0 the export of the chart was as expected. With version 7.0.1.5 the height of the chart is smaller.
PFA two png file and a sample project to reproduce this behaviour.
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.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.