Pre loader

Align two series with different sampling according to their datetime values

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

Answered
1
0

I am trying to implement a peak detection functionality in wpf. I have a DateTime axis as X and double as Y. When I add the second series (containing the peaks) to the chart it renders the points by their index, not by their date. (picture second chart red dots)

Is there any way I can plot two series with different sampling in a way that the sample points are aligned according to their dateTime values?

I attached some of my codes below.

Attachments
Images
  • You must to post comments
Best Answer
0
0

Hi Kristof,

Yes there is! You need to use the DateTimeAxis, not CategoryDateTimeAxis.

Please see this article showing the difference between a category + a value axis

Let me know if this helps!

Best regards,
Andrew

  • You must to post comments
0
0

Hi Andrew!

I am using Multipane charts similar to the example, and SciStockChart.
When I replace CategoryDateTimeAxis with DateTimeAxis I get an XamlParesException saying DateTimeAxis TargetType does not comply with CategoryDateTimeAxis element type.

Can I use SciStockChart with DateTimeAxis? If not, is there another alternative to it.

Best Regards,
Kristóf

  • You must to post comments
0
0

Thank you for your help!

  • 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