Jan 4, 2010 at 3:27 AM
Edited Jan 5, 2010 at 6:24 AM
I seem to be having a problem with a LineSeries regarding LineDataPoint objects. Basic steps to reproduce are below.
1. Create simple sparkline chart as seen in the silverlight sample.
2. Bind it to an observable collection.
3. Add 50 elements to observable collection.
4. Clear Collection.
When I clear the collection, the chart clears, but 50 LineDataPoints remain in the Canvas "PlotArea" as viewed in Wpf Performance Suite. If I add more elements to the chart and clear them, I then have even more LineDataPoints.
What is the proper way to handle this issue?
*edited horrible grammar*