Hi there,
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.
- Wandisile Nongodlwana asked 8 years ago
- last edited 8 years ago
- You must login to post comments
Hey,
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!
- Wandisile Nongodlwana answered 8 years ago
-
Ah I see. How are you drawing the selected points? As the method of drawing will determine where they are placed (after, or before selected series). Selected Series are always drawn with highest Z-Order so its a bit difficult to have a point on a series below rendered above a point on a series above …
-
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?
-
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?
- You must login to post comments
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.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 8 years ago
- You must login to post comments
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?
- Wandisile Nongodlwana answered 8 years ago
- You must login to post comments
Please login first to submit.