Chart Label Text Truncated

Hi, I’ve encountered a strange behavior when transforming donut chart in image.
I’ve noticed that some label are truncated if the text is longer more than 10 caracter and without space.

Here’s my code:
string pathExcelFile = pathAppDataDir + “ExcelFile.xlsx”;
string sheetName = “chartSheet”;
string chartName = “chart”;
string pathImageFile = pathAppDataDir + “ImageFile.png”;
string pathWordFile = pathAppDataDir + “WordFile.docx”;

        if (File.Exists(pathExcelFile))
        {
            Workbook workbook = new Workbook(pathExcelFile);
            Worksheet worksheet = workbook.Worksheets[sheetName];
            Chart chart = worksheet.Charts[chartName];

            ImageOrPrintOptions options = new ImageOrPrintOptions();
            options.ImageType = Aspose.Cells.Drawing.ImageType.Png;
            options.VerticalResolution = 300;
            options.HorizontalResolution = 300;
            options.Quality = 100;

            if (File.Exists(pathImageFile))
            {
                File.Delete(pathImageFile);
            }
            chart.ToImage(pathImageFile, options);

            Document doc = new Document();
            DocumentBuilder builder = new DocumentBuilder(doc);

            Image image = Image.FromFile(pathImageFile);

            builder.InsertImage(image);
                            
            if (File.Exists(pathWordFile))
            {
                File.Delete(pathWordFile);
            }
            doc.Save(pathWordFile);

        }

Here’s the file I used: ExampleFile.zip (66.7 KB)

Looking at the image generated you’ll notice that the label that in excel is “International” in the image became “nal”, and also “Asia/Australia” became “alia”.

Please, can you help me?

@costanzo.greco,

Please notice, we were able to reproduce the issue as you mentioned by rendering the chart to image. We found some chart labels text are truncated in chart to image rendering. We have logged a ticket with an id “CELLSNET-47790” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.

@costanzo.greco,

This is to inform you that we have fixed your issue now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

@costanzo.greco,

The issues you have found earlier (filed as CELLSNET-47790) have been fixed in this update.