If we save the chart in our attached workbook as image, the horizontal axis labels are printed all on one line, instead of two. Thus, they overlap. Secondly, the DD/MM/YYYY date labels change their position a bit.
Here is the following code used to reproduce this issue:
var workbook = new Workbook(“testFile.xlsx”);
var worksheet = workbook.Worksheets;
const string chartName = “Chart 6”;
var chart =
worksheet.Charts.FirstOrDefault(x => chartName.Equals(x.Name, StringComparison.OrdinalIgnoreCase));
if (chart == null)
Compare the output with the original chart.
Thanks for your posting, illustrating nice screenshot and using Aspose.Cells.
We were able to replicate this issue by converting your excel file into pdf and observing the chart image inside it using the latest version: Aspose.Cells
for .NET v126.96.36.199 as per your screenshot.
We have logged this issue in our database for investigation. We will look into it and fix this issue. Once the issue is resolved or we have some other update for you, we will let you know asap.
This issue has been logged as
- CELLSNET-44046 - Chart.ToImage modifies labels alignment
I have attached the output pdf generated with the following code for a reference.
Workbook workbook = new Workbook(filePath);
PdfSaveOptions opts = new PdfSaveOptions();
opts.OnePagePerSheet = true;
workbook.Save(filePath + “.out.pdf”, opts);
The issues you have found earlier (filed as CELLSNET-44046) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.