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

Free Support Forum - aspose.com

New/break line for the chart serie/category labels

Hi,

Currently, I want to make a new line in the labels in a diagram/chart in Pptx file as in my attachment. We could achieve by adding new lines in excel file file when clicking “edit data” on the selected labels. But I don’t know how could we program it using the aspose.slide ? I did try put “\n” in the label like this: “label1 \n with a new line” but it doesn’t work. Thanks you so much for your advice.

Hi Cuong,


I have observed your comments. Can you please share source presentation with desired result so that we can further investigate.

Best Regards,

Hi Adnan,

I attached a zipped file which includes 2 files (one for expected and one for result in reality).

Best Regards,

Hi Coung,


We are working on this and will get back to you with feedback soon.

Best Regards,

Hi Adnan,

Any update from your side ?

Tks alot

Hi Coung,


Can you please use \r instead of \n. It will work for you. Please share feedback with us if there is still an issue.

Best Regards,

Hi Adnan,

It works perfectly. Thank so much.
Cuong

Hi Cuong,


You are very welcome.

Best Regards,