We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Issues trying to right align the category axis labels from code in a powerpoint chart

Hi, 
We have written code to generate charts in a PowerPoint slide however we are noticing that when the category labels wrap onto more than one line the text becomes centered as opposed to right aligned. We were able to locate a way to do this using the line spacing options found in PowerPoint itself but have been unable to locate a property on the chart object to do this from code and we are wondering if there is a way provided in the syncfusion presentation library we obtained from nuget. Below is the line spacing option I am referring to.

We were able to access it by selecting the category label area in PowerPoint then  in the Home tab, clicking the Line Spacing Icon and the Line Spacing Options item in the drop down. Does anyone know a way to achieve the same affect in code?

Untitled.png 


3 Replies

AN Anto Nihil Sahaya Raj Syncfusion Team March 30, 2023 12:17 PM UTC

Hi Matthew,

At present, our Essential Presentation library doesn’t have API to
align the category axis labels of the chart in a PowerPoint Presentation. And, we don’t have any immediate plans to implement this feature.

Regards,
Anto Nihil S 



MS Matthew Spence replied to Anto Nihil Sahaya Raj March 30, 2023 01:12 PM UTC

Hi, 

I noticed that you moved the discussion to the Xamarin.Android topic space. I think theres been some confusion as we are not developing this for the android platform nor are we using Xamarin in any way. The application uses the C# library Syncfusion.Presentation.Net.Core to programmatically generate a Slide with various charts in it on the server then return the file to the front end. Does this information change anything or is this still not a feature that currently exists.


Matthew



AN Anto Nihil Sahaya Raj Syncfusion Team March 31, 2023 08:12 AM UTC

Matthew, as we mentioned earlier, our Essential Presentation library doesn’t have API to align the category axis labels of the chart in a PowerPoint Presentation for all platforms.


Loader.
Up arrow icon