We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Update ViewModel when I touch a chart fragment in Doughnut Chart

Thread ID:

Created:

Updated:

Platform:

Replies:

126193 Sep 29,2016 12:57 PM Sep 30,2016 07:34 AM Xamarin.Forms 1
loading
Tags: SfChart
Juan (Charly) Garibay
Asked On September 29, 2016 12:57 PM

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.

Jaikrishna Chandrasekar [Syncfusion]
Replied On September 30, 2016 07:34 AM

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;