Update ViewModel when I touch a chart fragment in Doughnut Chart

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.

1 Reply

JC Jaikrishna Chandrasekar Syncfusion Team September 30, 2016 11:34 AM UTC

Hi Juan,
 
The same query has been asked in the forum ID #126181. So we request you to follow with that forum for further details. 
  
Regards, 
Jaikrishna C 


Loader.
Up arrow icon