Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Tue Mar 22, 2016 5:37 pm

Hi,
How I can reduce the font size of the axis?

Thanks
Luca

luca.vassallo
 
Posts: 7
Joined: Wed Mar 16, 2016 10:07 am

Wed Mar 23, 2016 2:41 am

Hi,

Thanks for your posting.
Please use the following code to reset font size of categories axis labels.
Code: Select all
 chart.PrimaryCategoryAxis.TextProperties.Paragraphs[0].DefaultCharacterProperties.FontHeight = 10;


Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Wed Mar 23, 2016 8:37 am

Hi Amy,
thank you very much it works perfect!

Will be wonderful if you can suggest me how to reset the font size of DataTable too.

I try the following but does not work:
Code: Select all
     chart.ChartDataTable.Text.TextStyle.DefaultParagraphStyle.DefaultTextRangeProperties.FontHeight = 10;


I need to use it on a Pie chart.

Best Regards,

Luca

luca.vassallo
 
Posts: 7
Joined: Wed Mar 16, 2016 10:07 am

Wed Mar 23, 2016 9:00 am

Hi Luca,

Thanks for further posting.
Do you want to set font size of chart data? Could you please give us an example you want?
Thank you.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Wed Mar 23, 2016 9:38 am

Hi Amy,
I need to reduce the font size of the label inside the pie chart.

Check the image.

Thanks.
Luca

luca.vassallo
 
Posts: 7
Joined: Wed Mar 16, 2016 10:07 am

Thu Mar 24, 2016 1:55 am

Hi Luca,

Please use this code.
Code: Select all
chart.Series[0].DataLabels.TextProperties.Paragraphs[0].DefaultCharacterProperties.FontHeight = 20;


Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Mon Mar 28, 2016 8:21 am

Hi,

Has your issue been resolved?
Thanks for your feedback in advance.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Tue Mar 29, 2016 10:11 am

Hi,
sorry for the late. Yes, the solution you post works great,

Kind regards,
Luca

luca.vassallo
 
Posts: 7
Joined: Wed Mar 16, 2016 10:07 am

Wed Mar 30, 2016 2:04 am

Hi,

Glad to hear that your issue has been resolved. Welcome to write to us again for further problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Presentation