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

FastLineSeries binded to ObservableCollection does not update chart when RemoveAt called in a loop that leaves A SINGLE data point

Hello,

I have encountered the following unexpected behavior (bug? I assume so). I have attached a zip file with the example.

There are 5 buttons in the example. Each is meant to add or remove points to the FastLineSeries in the chart.

To test this, please click the first button (Add Point) multiple times to add random datapoints. Then click one of the other 'Remove' buttons, to test functionality.

1 - Add Point - adds a single point to the chart 

2 - Remove Point - removes a single point (the last point) from the series (this works as expected)

3 - Remove All Points - runs a backwards loop on the collection and removes all points from last to first (this works as expected, and the chart updates)

4 - Remove Half Points - runs a backwards loop on the collection and removes half the data points (this works as expected, and the chart updates )

5 - Remove To 1 Point - this is supposed to run a backwards loop on the collection and removes all points EXCEPT the first one (THIS DOES NOT WORK, THE CHART ITSELF DOES NOT UPDATE WITH THE CHANGE IN THE COLLECTION. If you click the 'Add Point' button however, you can see that the chart then updates and adds the point to series index 1. So the underlying collection is indeed changing, however the chart is not updating with the change.)


This functionality is a business requirement. Can this please be corrected? or is there another way that this should be accomplished? ​


Attachment: EditFastSeriesValues_c4ebf130.zip

4 Replies 1 reply marked as answer

NM Nanthini Mahalingam Syncfusion Team November 24, 2022 02:29 PM UTC

Hi Lorenzo,

We analyzed your query and we have confirmed the reported problem " FastLineSeries view is not updated while updating single data dynamically" as an issue, and the fix for the reported issue will be updated on or before December 6, 2022.


Feedback: https://www.syncfusion.com/feedback/39354/fastlineseries-view-is-not-updated-while-updating-single-data-dynamically


Note: The provided feedback link is private, and you need to login to view this feedback.


Regards,

Nanthini Mahalingam.



NM Nanthini Mahalingam Syncfusion Team December 6, 2022 09:10 AM UTC

We are glad to announce that the fix for the reported issue was included in our latest weekly NuGet release v20.3.0.60 which is available for download (https://www.nuget.org).

 

NuGet Version: 20.3.0.60

 

We thank you for your support and appreciate your patience in waiting for this release. Please contact us if you would require any further assistance.




Marked as answer

LO Lorenzo December 7, 2022 03:11 AM UTC

Thanks it works now.



NM Nanthini Mahalingam Syncfusion Team December 7, 2022 10:48 AM UTC

We are glad to know that the reported problem has been resolved .Please let us know if you have any further queries on this. We are happy to help.


Loader.
Live Chat Icon For mobile
Up arrow icon