Hi Michael,
Thanks for using Syncfusion products.
We have analyzed your query and with the provided code snippet, very low value for HeightRequest and WidthRequest has been given for chart. Chart renders based on the available height and width. There is a property named “CircularCoefficient" in DoughnutSeries to control the space around the segments. It takes value from 0 to 1. To remove all white space around a doughnut, the CircularCoefficient property value should be 1.
We have prepared a sample based on your requirement. Please download the sample from below location.
Sample: Doughnut
Please let us know if you need further assistance on this.
Thanks,
Manivannan.E
Hi Michael,
We can achieve your requirement by setting value for EdgeInsets property in our native SFChart and need not to create custom renderer. We can get the Native SFChart from Main.cs class in iOS project, here we can set the value for EdgeInsets property as shown in the below code snippet.
CodeSnippet:
static void Main(string[] args)
{
Xamarin.Forms.Forms.ViewInitialized += Xamarin_Forms_Forms_ViewInitialized;
UIApplication.Main(args, null, "AppDelegate");
}
static void Xamarin_Forms_Forms_ViewInitialized (object sender, Xamarin.Forms.ViewInitializedEventArgs e)
{
if(e.NativeView is SFChart)
(e.NativeView as SFChart).EdgeInsets = new UIEdgeInsets (0, 0, 0, 0);
}
We have prepared a sample based on your requirement. Please download the sample from below location.
Sample: Doughnut
Please let us know if you need further assistance on this.
Thanks,
Manivannan.E