SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.