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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





142717 Feb 16,2019 05:52 AM UTC Feb 18,2019 12:47 PM UTC Xamarin.Forms 1
Tags: SfChart
Asked On February 16, 2019 05:52 AM UTC

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"                
                JustifyContent="SpaceEvenly" />


Bharathiraja K [Syncfusion]
Replied On 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. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon