This is a migrated thread and some comments may be shown as answers.

Chart inside StackLayout

1 Answer 94 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Murat
Top achievements
Rank 1
Murat asked on 17 Apr 2015, 09:30 PM

Hi,

I am working on a Xamarin Forms project.

When I place a chart in page's content it is working(like in Telerik examples)

But when I place it inside a StackLayout; chart does not populate in the view.

Is it a bug?

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 21 Apr 2015, 07:48 AM
Hello Murat,

This is the expected behavior.

When you put an element inside a StackLayout it is positioned according to its own desired size. Since a Chart does not have its own desired size it will not be visible. You should explicitly define the size of the chart when put into a StackLayout or simply make sure the Chart is in a layout element that stretches it to the available size.

Regards,
Deyan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Chart
Asked by
Murat
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or