Category / Section
How to resolve SfSunburstChart not rendering issue in iOS and UWP
1 min read
Description:
Xamarin does not load the renderer assemblies, by default, in iOS and UWP projects, so in order to solve this, you have to manually load it by calling Init method of SfSunburstChartRenderer class in the respective projects as mentioned below.
iOS Project
Call Init method of SfSunburstChartRenderer in FinishedLaunching overridden method of AppDelegate class in iOS Project as shown below,
C#:
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { ... Syncfusion.SfSunburstChart.XForms.iOS.SfSunburstChartRenderer.Init(); ... }
UWP Project
Call Init method of SfSunburstChartRenderer in the constructor of MainPage in UWP project as shown below.
C#:
public MainPage() { Syncfusion.SfSunburstChart.XForms.UWP.SfSunburstChartRenderer.Init(); ... }