I have just started using your charts. I would like to use a bar chart inside of a grid row. The bar chart's data will vary by user and thus I don't know the number of bars to be shown - and therefore, I would like to use the "Auto" height of the grid row.
But using that doesn't show the grid. I found this article: https://www.syncfusion.com/kb/5722/how-to-add-the-chart-inside-stacklayout-scrollview that gives an explanation. However, I cannot make it work with e.g. a StackLayout inside the grid (or even with the stacklayout just after the grid...).
This is the XAML I'm using:
<Grid Padding="15,10" Margin="10,0,10,5" BackgroundColor="White">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label Grid.Row="0" Grid.Column="0" Text="{Binding SpeciesCounterTitle}" Style="{StaticResource HeadingText}" />
<!-- Bar chart with species -->
<chart:SfChart Grid.Row="1" Grid.ColumnSpan="2" ChartPadding="0,5">
<chart:SfChart.PrimaryAxis>
<chart:CategoryAxis ShowMajorGridLines="False"/>
</chart:SfChart.PrimaryAxis>
<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis ShowMajorGridLines="False" ShowMinorGridLines="False" IsVisible="False"/>
</chart:SfChart.SecondaryAxis>
<chart:BarSeries ItemsSource="{Binding SpeciesCounts}" XBindingPath="Name" YBindingPath="Count" Color="{StaticResource PrimaryAppColor}" Width="0.5">
<chart:BarSeries.DataMarker>
<chart:ChartDataMarker>
<chart:ChartDataMarker.LabelStyle>
<chart:DataMarkerLabelStyle LabelPosition="Outer" LabelFormat="{Binding BarLabelFormat}" Font="12" TextColor="Black" BackgroundColor="White"/>
</chart:ChartDataMarker.LabelStyle>
</chart:ChartDataMarker>
</chart:BarSeries.DataMarker>
</chart:BarSeries>
</chart:SfChart>
</Grid>
How can I obtain that without having to bind the height to a property and try to "guess" the height based on number of data sets?
Oh, and the other thing - there is quite some "white space" between each bar. I would like to make that much less - but how? I have been trying to experiment with "width" and "space" - but they just seem to make the bar narrower/thinner - and not affect the space between them...