Hi guys,
I'm using Syncfusion Xamarin SfChart to display a Doughnut Chart in one of my projects. I bind a property of my viewmodel to SelectedDataPointIndex of DoughnutSeries. When I update my model chart is updated with new selection, but, when I select/touch a chart fragment, my model is not updated. :'(
My chart configuration is:
<chart:SfChart BackgroundColor="White" HeightRequest="200">
<chart:SfChart.Series>
<chart:DoughnutSeries ItemsSource="{Binding Accounts}"
XBindingPath="Description"
YBindingPath="Amount"
ExplodeOnTouch="False"
EnableAnimation="True"
StrokeWidth="2"
StrokeColor="White"
DoughnutCoefficient="0.75"
EnableDataPointSelection="True"
ListenPropertyChange="True"
SelectedDataPointColor="#1094F6"
SelectedDataPointIndex="{Binding Chart_SelectionIndex}">
</chart:DoughnutSeries>
</chart:SfChart.Series>
</chart:SfChart>
I'm using Syncfusion.SfChart.XForms version 14.3451.0.49.
Any idea on how to update my view model? What is wrong with this? Does SfChart support two-way binding?
Thanks in advance.