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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Removing and Added new data From ObservableCollection

Thread ID:





142161 Jan 22,2019 02:00 PM UTC Jan 23,2019 10:31 AM UTC Xamarin.Forms 1
Tags: SfChart
Asked On January 22, 2019 02:51 PM UTC


sorry for my little english. I have a little problem for a ObservableCollection to the SfChart.
On begin the app, the datas are good entry to the chart. 
Only, when I want to erase the data to add new ones, the collection updates it but the sfchart becomes empty.
Would you have a solution?

Thank you.


Edit: This problem is resolved. I put a mini and maxi value to the X Axys. This data is DateTime and i put minimum = 00:00 AM and maximum = 11:59 PM.
Or, my different value could be for the different days.
So i did not work.

Bharathiraja K [Syncfusion]
Replied On January 23, 2019 10:31 AM UTC

Hi Stephane 
Greetings from Syncfusion, we have tried to replicate the reported issue at our end by creating a simple sample, we are afraid that we are not able to reproduce the issue at our end. We have tested the below mentioned scenarios and used ObservableCollectiont to bind data.  
1. Tested by removing data one by one and added new data dynamically using button click.  
2. Tested by clear the data collection and adding new data dynamically.  
3. Tested without setting any minimum and maximum value for the DateTimeAxis. 
Please find the tested sample below.   
Since we are not aware of your exact application scenario, we were not able to reproduce this issue at our end, so can you please revert us by modifying the sample based on your application along with replication procedure. This will be helpful for us to investigate further and provide you a better solution at the earliest. And update the SfChart to latest version and check once whether the issue still reproduced.  


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

Live Chat Icon For mobile
Live Chat Icon