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.

How to resolve SfChart not rendering issue in iOS and macOS

By default, Xamarin does not load the renderer assemblies in iOS and macOS projects. So, in order to solve this issue, manually load it by calling a static Init method of SfChartRenderer class in the respective projects as mentioned below.

iOS Project

Call Init method of SfChartRenderer in FinishedLaunching overridden method of AppDelegate class in iOS Project as shown below.

C#:

 

macOS Project

Call Init method of SfChartRenderer in DidFinishLaunching overridden method of AppDelegate class in macOS Project as shown below.

C#:

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7144 11/18/2016 06/27/2018 Xamarin.Forms SfChart
Did you find this information helpful?
Comments
Chris Jan 30, 2018

`iOS` is not in the namespace `Syncfusion.SfChart.XForms.`

Reply
Prabakaran Ramasamy [Syncfusion] Jan 30, 2018
Hi Chris, have you referred the Syncfusion.SfChart.XForms.iOS.dll in your iOS project?

Required dependencies are listed in this page - https://help.syncfusion.com/xamarin/introduction/control-dependencies#sfchart

Chart getting started document - https://help.syncfusion.com/xamarin/sfchart/getting-started

Thanks,
Prabakaran R.
Add Comment
You must log in to leave a comment

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.