Articles in this section
Category / Section

How to resolve Chart not rendering issue in iOS and macOS

2 mins read

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#:

public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{ 
       ... 
       Syncfusion.SfChart.XForms.iOS.Renderers.SfChartRenderer.Init(); 
       ... 
}

 

macOS Project

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

C#:

public override void DidFinishLaunching(NSNotification notification)
{ 
       ... 
       Syncfusion.SfChart.XForms.MacOS.SfChartRenderer.Init(); 
       ... 
}

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please  to leave a comment
Access denied
Access denied