Hi.
I'm trying to display a small colored circle next to each label in the chart legend based on the IconColor.
It is working like a charm on Android but for some reason its not rendering on iOS.
My code :
<chart:SfChart.Legend>
<chart:ChartLegend IsIconVisible="True" IsVisible="True" DockPosition="Bottom" OverflowMode="Wrap" ToggleSeriesVisibility="True">
<chart:ChartLegend.ItemTemplate>
<DataTemplate>
<StackLayout Orientation="Horizontal">
<BoxView Color="{Binding IconColor}" CornerRadius="8" HorizontalOptions="Center" VerticalOptions="Center" HeightRequest="10" WidthRequest="10" />
<Label FontSize="14" VerticalTextAlignment="Center" Text="{Binding Label}" TextColor="{Binding IconColor}"/>
</StackLayout>
</DataTemplate>
</chart:ChartLegend.ItemTemplate>
</chart:ChartLegend>
</chart:SfChart.Legend>
I even tried using a converter, IconColor is a Xamarin.Forms.Color no problem but its not rendered.
The result screenshot on Android and iOS and some code attached
Any help would be greatly appreciated
Attachment:
sfChart_43eea93c.zip