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.
Unfortunately, activation email could not send to your email. Please try again.

Set Legend FontSize

Thread ID:





131764 Jul 26,2017 07:50 AM Jul 31,2017 06:36 AM Xamarin.Forms 2
Tags: SfChart
Asked On July 26, 2017 07:50 AM


i'm trying to size the sfchart legend font. I used the code given on:


but i get the error saying:

 No property, bindable property, or event found for 'FontSize'

Seems like the Xamarin Forms Font Class only has readonly fontsize property.

So my question is, how do i set the legends font size?

Saravana Pandian Murugan [Syncfusion]
Replied On July 27, 2017 12:35 PM

Hi Simon, 
Thanks for using Syncfusion products. 
We would like to inform you that this is an issue with the framework when XAML compilation is enabled. We have also ensured this in Font property for Label and the same issue is reproduced. To overcome this issue, you can set the FontSize as per the below code. 
Code Example: 
             <chart:ChartLegendLabelStyle Font="30"/> 
We have also attached sample for your requirement which can be downloaded from the below location.  
Note: We will modify the code snippet of FontSize in our User Guide document in one business day (July 28, 2017). 
Please check the sample and let us know if you need further assistance on this. 
Saravana Pandian M. 

Saravana Pandian Murugan [Syncfusion]
Replied On July 31, 2017 06:36 AM

Hi Simon,

Sorry for the delay.

We have modified the code snippet of FontSize in our Xamarin.Forms User Guide document. Please find the below User Guide link of Legend.

UG Link: https://help.syncfusion.com/xamarin/sfchart/legend#customizing-labels  

Saravana Pandian M.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.