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


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

1 Reply

NM Nanthini Mahalingam Syncfusion Team November 24, 2022 09:29 AM

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.


Nanthini Mahalingam.

Live Chat Icon For mobile
Up arrow icon