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