How to change the font size of chart labels.

Technical support for Presentation

Moderator: iceblue support

How to change the font size of chart labels.

Postby stp_webdev » Fri Apr 28, 2017 1:36 pm

Hi,

I have a Barclustered chart within in a rectangle in my slide. How to change the font size of all chart labels.
stp_webdev
 
Posts: 15
Joined: Fri Apr 21, 2017 1:40 pm

Re: How to change the font size of chart labels.

Postby Simon.yang » Mon May 01, 2017 7:17 am

Hello,
Please use the below method in our Spire.Presentation to set the font size of chart labels:
Code: Select all
chart.Series[0].DataLabels.TextProperties.Paragraphs[0].DefaultCharacterProperties.FontHeight=30;

If you have any questions, please write back to us.

Thanks,
Simon
E-iceblue support team
User avatar
Simon.yang
 
Posts: 92
Joined: Wed Jan 11, 2017 2:03 am

Re: How to change the font size of chart labels.

Postby stp_webdev » Mon May 08, 2017 9:54 am

Hi,

Thank you so much. Your code is working as expected.
stp_webdev
 
Posts: 15
Joined: Fri Apr 21, 2017 1:40 pm

Re: How to change the font size of chart labels.

Postby Simon.yang » Tue May 09, 2017 8:53 am

Hello,

Thanks for your feedback.
If there are any other questions, please don't hesitate to contact us.

Thanks,
Simon
E-iceblue support team
User avatar
Simon.yang
 
Posts: 92
Joined: Wed Jan 11, 2017 2:03 am


Return to Spire.Presentation

Who is online

Users browsing this forum: No registered users and 0 guests