Hello,
We’ve stumbled upon some issue with Aspose.Cells v21.7 when converting some XLSX charts to PNG (displaying as HTML Base64) - all charts are converted, but some of them are distorted.
In attachment you can find sample solution with file and chart that is causing unwanted effect.
Is there something that we can do (change some code to make it work or change something in chart) that can fix this issue quickly?
@avaaz,
This issue is reproduced here and logged in our database for further investigation. You will be notified in this thread once any update is ready for sharing.
This issue is logged as: CELLSNETCORE-132 - Distorted chart created in converted Html
Hi @leoluo,
Sorry for late response. I’ve tested by updating example to 21.8, but result is still far from acceptable
This is the result image.png (203.3 KB)
And this is original chart in Excel image.png (33.9 KB)
Chart is still somehow narrowed, datapoints are unnaturally large and have text that I believe is comment or name (either way it’s not visible in Excel)
@avaaz,
Thank you for the feedback. We have recorded this information with the logged ticket for our reference. We will write back here as soon as some feedback is ready to share.
Hi @avaaz
We did some optimization, please use aspose.cells 21.9:
Or you can get it directly from nuget.
We have optimized the image compression, the text on the bubble point, the abnormal size of the bubble point.
There are still some problems, for example, the location of bubble points, we will continue to optimize in next patch version.
Please let us know your feedback and we will continue to optimizes your questions. Thank you.
Hi @leoluo,
this is current outcome from given example image.png (186.2 KB)
Apart from wrong location of the bubbles, there is still random label at the bottom (Jul-17), I think it comes from comment/name from one of the plots. Also the whole chart is narrowed (it moved away from left/right legends, or legends moved away from chart)
It’s better than before, but still not ideal
In fact, we’ve already noticed the problem of " it moved away from left/right legends".
Our output to png/pdf/html follows the logic of the excel print preview, which does compress the chart to a certain extent.
However, this margin is determined by the stretch of the chart (legends are in the right position) .
You can see that the excel margin is larger, and we feel that the chart can no longer be stretched, or it will become uncoordinated.
The issues you have found earlier (filed as CELLSNETCORE-132) have been fixed in this update. This message was posted using Bugs notification tool by simon.zhao