Pre loader

How can I select/highlight a data point using the back-end codes

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

1
0

Scichart use SelectedPointMarker to change the selected data point style in xaml. Now I need change the selected point in back-end codes. I wish to create a method like void HighlightSelectDataPoint(int index) to do this. The index is the point’s index on the series. I don’t know how to implement this method. I’m not sure if scichart provides this feature.

Version
SciChart.Avalonia.XPF 1.0.1.28225
  • You must to post comments
0
0

SciChart WPF uses the IPointMetadata.IsSelected property to get/set selection programmatically

When you use DataPointSelectionModifier a metadata object is automatically added to the dataseries at index [i] if one does not exist.

So, if after user-selection, to programmatically set a point as deselected, you can call this code:

xyDataSeries.Metadata[i].IsSelected = false;

For more info see the XyDataSeries class members, particularly the XyDataSeries.Metadata property. Each of which is type IPointMetadata. Also the

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.