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.

ChartTitle Font

Thread ID:

Created:

Updated:

Platform:

Replies:

117472 Oct 26,2014 11:08 PM Oct 28,2014 02:44 AM Xamarin.Forms 3
loading
Tags: SfChart
Michael O'Connor
Asked On October 26, 2014 11:08 PM

In my project right now if I set the font of the ChartTitle it causes the entire page to fail to load.

ChartTitle ct = new ChartTitle();
ct.Text = title;
ct.Font = Font.SystemFontOfSize(13);  

It doesn't throw an exception, so it took a bit to narrow it down.  The page just doesn't load.

Comment out the ct.Font line and I'm back up and running.  :-(

Karthikeyan V [Syncfusion]
Replied On October 27, 2014 07:16 AM

Hi Michael,

 

Sorry about the inconvenience caused. 

 

We are able to reproduce the issue in iOS Xamarin.Forms. We will fix this issue in our next service pack release which is expected to be rolled out in the end of November, 2014. However, you can resolve this issue by using the following workaround.

 

Code snippet [C#]:

 

Font font = Device.OnPlatform(
iOS:     
Font.OfSize ("MarkerFelt-Thin", 18),
Android: 
Font.OfSize ("Droid Sans Mono", 18),
WinPhone:
Font.OfSize ("Comic Sans MS", 18)
);
chart.
Title = new ChartTitle(){ Text = " Chart Header",Font =font};

 

We have prepared a sample based on this and you can find the sample in the following location.

 

Disclaimer: The date for the release is tentative and not a commitment on our parts.

 

Please let us know if you require further assistance on this.

 

Regards,

Karthikeyan V


Attachment: SimpleChartSample_43a4475f.zip

Michael O'Connor
Replied On October 27, 2014 05:48 PM

Thanks for providing a workaround.

Karthikeyan V [Syncfusion]
Replied On October 28, 2014 02:44 AM

Hi Michael,


Thanks for the update.


Please let us know if you require further assistance on this.


Thanks,

Karthikeyan V


CONFIRMATION

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.

;