Pre loader

Highlighting individual points in line chart

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

I would like to have a line chart where only some of the markers along a given trace are highlighted. For example, to be able to click with the mouse on several points along a line and have them change from regular point markers to looking like a rollover marker.

One way I can think to do this is to overlay an xy scatter series on top of a line series, and when the user toggles points with the mouse, add or subtract them from the data source for the scatter series. Is this a reasonable way to do this, or is there a better way?

Thanks,
Jerry

  • You must to post comments
1
0

Hello Jerry,

Thanks for your question, at the moment data-point selection is not built into SciChart natively, however we do have it on our roadmap for SciChart v2.0.

At the moment there are a couple of workarounds you could use to achieve this same effect. These are:

  1. Use a separate series as you’ve mentioned. Either the Scatter Series or FastLineRenderableSeries with PointMarker set and SeriesColor set to transparent will do this. Note that double.NaN is effectively treated as a null value so you can either omit non-selected points, or pad them with double.NaN
  2. Use our annotations API. This will let you place WPF UIElements over the chart at specific X,Y coordinates. The Annotations API is demoed in several examples with source code in our Silverlight 5 Demos.
  3. Finally, we have a new series type in v1.5.5 called CustomRenderableSeries. This exposes the Draw() method that all our internal series use and with our help, you could create a custom series to do this. The API isn’t quite mature but we use this to assist customers with workarounds while features are being built into Scichart.

I hope that helps, let me know if you have any further questions

Best regards,
Andrew

  • You must to post comments
Showing 1 result
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