SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
I’m having an issue showing selected points on top of all other series.
I have created a polygon selector chart modifier based on the following knowledge article: http://support.scichart.com/index.php?/Knowledgebase/Article/View/17237/32/custom-chartmodifiers—part-3—custom-select-and-drag-a-series
Specifically, the issue that I’m having is that when the user does the polygon selection if the last point of the polygon is on one of the other series, the series shows above the selected points.
I have tried to set IsSelected = true (from above link), but that doesn’t seem to work. Is there another way of doing it? Or am I doing it at the wrong place? I have tried to set the IsSelected = true right before and right after I add the selected point series to the surface.
I have added two images, the first is how the points are currently drawing, and the second of how it should look every time.
I don’t know if this is possible, other than drawing the points AFTER all other points have been drawn.
In the article Custom ChartModifiers – Part 5 – Select and Drag a Data-Point we show a technique to render selected points after all others have been drawn.
NOTE: The above articles are applicable to v3.x of SciChart. In v4 of SciChart data-point selection has been added natively by the DataPointSelectionModifier.
Thanks for the reply.
The thing is that they are being drawn last, so they are normally on top, as the one picture shows. The problem is that if the user clicks on one of the other series, then that series will be on top of the selected points, even though I draw the selected points last, and make them IsSelected = true.
Will the data point selector work for my polygon selection method?
Thanks and have a great day!
I’m using the code from http://support.scichart.com/index.php?/Knowledgebase/Article/View/17255/32/custom-chartmodifiers—part-6—select-data-points-via-mouse-drag I just use my own logic to get the points that are selected inside a polygon. But the adding the points to the graph is the same as in that article. If I can’t set a new series to a higher z-index, is there a way to disable the selected series functionality?
Please login first to submit.