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. Image for the cookie policy date

How to use Pie Chart without Fix Width and Height for UWP?

I am placing 2 sfChart as pie within a flexlayout with the options below. but if i dont define any width or height for Charts, they dont align automaticly in UWP desktop app. It is important because UWP desktop is resizable. thats why i dont want to give a fix width or height. How can I achieve this?


 <FlexLayout  x:Name="SlMain"   VerticalOptions="StartAndExpand" HorizontalOptions="FillAndExpand"  BackgroundColor="White"                
                AlignItems="Center"
                JustifyContent="SpaceEvenly" />


 

1 Reply

BK Bharathiraja K Syncfusion Team February 18, 2019 12:47 PM UTC

Hi Emil, 
 
Greetings from Syncfusion, 
 
We have analysed your query and we would like to know that while using chart inside the FlexLayout directly the width and height of the chart is adjusting automatically.  
 
We have prepared a sample based on your requirement and it can be downloaded from the below link. 
 
 
When checking the gird layout inside the FlexLayout without setting the Width and Height the chart is not displaying. We are validating this issue using the GridLayout the chart is not showing without setting the HeightRequest and WidthRequest inside the FlexLayout. 
 
Can you confirm whether you are using the above scenario “Chart in grid layout”? This will be helpful for us to investigate further and provide you a better solution at the earliest. 
 
Regards, 
Bharathiraja. 


Loader.
Up arrow icon