Hi Daniele,
Thanks for using Syncfusion products.
We would like to let you know that we have to set VerticalOptions or HorizontalOptions for Chart when you add into Vertical or Horizontal StackLayout respectively. So chart will plot in remaining space inside StackLayout.
Please refer the below code snippet.
Code snippet [C#]:
Chart.HorizontalOptions
= LayoutOptions.FillAndExpand;
Chart.VerticalOptions
= LayoutOptions.FillAndExpand;
|
We have also prepared a sample and it can downloaded from following link.
http://www.syncfusion.com/downloads/support/directtrac/137347/ChartSample_Width_Height1315186565.zip
You can also specify the exact Width and Height for the Chart as shown in the below code snippet.
Code snippet [C#]:
Chart.HeightRequest
= 300;
Chart.WidthRequest
= 300;
|
Please let us know if you require further assistance on this.
Thanks,
Magesh Kumar K