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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Update ViewModel when I touch a chart fragment in Doughnut Chart

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 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 


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;