This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi.Now I have a question about TrackingElement to ask. When I add lines to Chart,if their locus are same,then throw an exception like this: Already exists with the same key entry. Codes is as following: _sortedSeries.Add(series.YAxis.ActualHeight - physicalPoint.Y, series); |
|
|
My apologies, I didn't realize that SortedList doesn't allow for duplicate values. The next nightly build will include an updated TrackingElement in the SampleExplorer demo which handles this properly. To fix this, I started by creating a struct called DoubleSeries that maps a double value to a LineAreaSeriesBase. I then replaced the SortedList in the UpdateElements method with a List sortedSeries.Sort((ds1, ds2) => { return (int)(ds1.Double - ds2.Double); }); Then some changes were made to the second loop to iterate a List Let me know if you have any questions about this. Jason Fauchelle |
|