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

SfChart won't display in listview that contains a grid

Thread ID:





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

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 11:13 AM

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 03:24 PM

Thank you!

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

 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.

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.