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

ChartTitle Font

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.  :-(

3 Replies

KV Karthikeyan V Syncfusion Team October 27, 2014 11:16 AM UTC

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


MO Michael O'Connor October 27, 2014 09:48 PM UTC

Thanks for providing a workaround.


KV Karthikeyan V Syncfusion Team October 28, 2014 06:44 AM UTC

Hi Michael,


Thanks for the update.


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


Thanks,

Karthikeyan V


Loader.
Up arrow icon