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

Sfchart Animate one value

Thread ID:

Created:

Updated:

Platform:

Replies:

142688 Feb 15,2019 09:19 AM UTC Feb 19,2019 10:17 AM UTC Xamarin.Forms 1
loading
Tags: SfChart
Antonin
Asked On February 15, 2019 09:19 AM UTC

Hello,

I have tried to update one value of a SplineAreaSeries and animate chart only for value that has changed but with no success. Is this feature exists or not ?

If I reset the ItemSource totally, chart updates all values and animate --> Ok but it's not that I want to do
If I set one value (with NotifyPropertyChanged implemented), chart update correctly this value but with no animation --> Is there anyway to achieve this ?

Thank you for your answer.
A.

Bharathiraja K [Syncfusion]
Replied On February 19, 2019 10:17 AM UTC

Hi Antonin, 
 
Greetings from Syncfusion. 
 
You can able to redraw animation when adding new value to the data collection by calling the Animate method in the chart series. Please refer the CustomSeries class in the Android and iOS projects. 
 
Code Snippet: 
public class CustomSeries : SplineAreaSeries
{
        protected override void CreateSegments()
        {
            base.CreateSegments();
            this.Animate();
        }
}
 
 
We have prepared a sample for this. Please download it from the following location. 
 
 
Note: Currently redraw animation is not working for UWP platform. So, can you please confirm whether your requirement is in UWP platform or not? If yes, we will validate the issue and provide you patch for that. 
 
Regards, 
Bharathiraja. 


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

This page will automatically be redirected to the 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

;