We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Chart's Shortcut Long Text Content: Chart's Labels and Legend

Hello,
With updating Aspose.Slides.Net to version 21.7.0 chart’s legend shortcut long text content in row and column headers and label’s title too
Screenshots
column header long text shortcut example case3.png (103.3 KB)
row long text title shortcut example case1.png (63.8 KB)
labels long text shortcut case case2.jpg (76.5 KB)

Presentations
row case Presentation1.zip (109.5 KB)
column case Presentation3.zip (141.8 KB)
label case Presentation2.zip (48.3 KB)

You can use attached presentations as example. Base code is

    foreach (Slide slide in presentation.Slides)
    {
        var charts = slide.Shapes.Where(_ => _ is Chart chart).Select(_ => (Chart)_);
        var i = 0;

        foreach (var chart in charts)
        {
            using (var bmp = chart.GetThumbnail())
            {
                bmp.Save(string.Format(@"C:\temp\chart{0}.jpeg", i), System.Drawing.Imaging.ImageFormat.Jpeg);
                i++;
            }
        }
    }

@Viktors,
Thank you for the issue description. I will answer you as soon as possible.

1 Like

@Viktors,
I reproduced the issues you described and added tickets with ID SLIDESNET-42725 (chart legend is cut) and SLIDESNET-42726 (data labels are cut) in our tracking system. Case 3 has been logged here. Our development team will investigate these cases. You will be notified when these issues are resolved.

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