You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the chart has no size. Because the chart is inside a VerticalStackLayout, you must define the size of the chart so the stack layout can do its job.
Setting the HeightRequest property will fix your issue.
@mimeie in addition to what @beto-rodriguez posted, if you put a ScrollView inside a VerticalStackLayout it will probably take up as much space as it can since VerticalStackLayout doesn't constrain its children. This is a different behavior from Xamarin.Forms where layouts did extra calculations based on children.
If you really need a ScrollView inside a VerticalStackLayout then you must give that ScrollView a size.
Hi
I have a problem in .NET MAUI (newest version).
This works fine:
<ScrollView> <lvc:CartesianChart x:Name="myChart" /> </ScrollView>
this hides the whole chart:
<VerticalStackLayout> <ScrollView> <lvc:CartesianChart x:Name="myChart" /> </ScrollView> </VerticalStackLayout>
I cannot find any reason why it is like this. The same happens also in ContentViews.
Thanks for helping.
The text was updated successfully, but these errors were encountered: