Pre loader

Showing selected points on top of all other series

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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.

http://support.scichart.com/index.php?/Knowledgebase/Article/View/17180/28/changing-z-order-of-renderableseries

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.

Version
3.42.0.6778
Images
  • You must to post comments
0
0

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

  • You must to post comments
0
0

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!

  • You must to post comments
0
0

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 to post comments
Showing 3 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies