Free Support Forum -

Aspose Cells and Chart.toImage() image quality


We’re evaluating Aspose Cell’s ability to save Excel charts to PNG images. I wonder if someone could comment on the following observations and if there are any option to override the default image generation behavior to circumvent these apparent limitations.

  • 3D charts are being rendered as 2D images
  • A way to improve the quality of generated PNG to match more closely to the resolution of charts in Excel
  • Inconsistent label placement on the generated image. In certain cases, labels are don’t make to the image at all.
  • ‘Stock’ type chart images come as blank.
  • Bubble chart images aren’t rendered correctly.
I have attached a ZIP file containing the source MS Excel file, the Java class file used to produce the images and a Word document giving a comparatory view of charts as they look in MS Excel and as they are exported by Cells’ Java API.

Is there a way to improve the results?




Thanks for sharing us details with template files.

Well, not all the chart types are supported at the moment. Also, the 3D charts are not
supported. We are working hard to support more and more chart types with their respective attributes/options. We have already provided an online document to
show which chart types are supported at the moment, see the table in
the document:

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}


Anyways, we found your mentioned issues, we have logged your issue as an id: CELLSJAVA-15356. into our issue tracking system, we will soon look into your mentioned issues and get back to you soon.

Thank you.

Thank you, Amjad. The link you’ve pasted is quite useful.