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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfChart won't display in listview that contains a grid

Thread ID:





125233 Aug 1,2016 05:15 PM UTC Aug 3,2016 09:20 AM UTC Xamarin.Forms 3
Tags: SfChart
Asked On August 1, 2016 05:15 PM UTC

Trying to implement a line chart within a listview item.
Works fine if I return a chart to the listview and display it.

However if I try to wrap the SfChart in a Grid view within the listview item, or if I try to wrap the SfChart in a StackLayout before displaying it will not display.

See the attached example solution.

Please advise as to if this is possible and/or what I am doing wrong

Attachment: App_d37a2d0e.zip

Jaikrishna Chandrasekar [Syncfusion]
Replied On August 2, 2016 03:13 PM UTC

Hi Bob,   
We can achieve your requirement by making the following changes.   
For Stack Layout: In your Sample, the layout options for the children in the stack layout are not defined and we have defined the layout options as fill and expand to make the chart visible.   
For Grid Layout: In your sample, too many row definitions are used to fit into the view cell and we have reduced the row definitions to make the chart visible.   
We have modified the sample and it can be downloaded from the below location.   
Jaikrishna C   

Replied On August 2, 2016 07:24 PM UTC

Thank you!

Jaikrishna Chandrasekar [Syncfusion]
Replied On August 3, 2016 09:20 AM UTC

 Hi Bob, 

Thanks for the update. Please let us know if you need any further assistance.
Jaikrishna C 


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