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
close icon

SfChart won't display in listview that contains a grid

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

3 Replies

JC Jaikrishna Chandrasekar Syncfusion Team 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.   
   
   
Regards,   
Jaikrishna C   



TJ TJISMH August 2, 2016 07:24 PM UTC

Thank you!


JC Jaikrishna Chandrasekar Syncfusion Team August 3, 2016 09:20 AM UTC

 Hi Bob, 

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


Loader.
Live Chat Icon For mobile
Up arrow icon