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.
- Kristóf Czimer asked 8 years ago
- You must login to post comments
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
- Andrew Burnett-Thompson answered 8 years ago
- You must login to post comments
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
- Kristóf Czimer answered 8 years ago
-
Hi Kristof, SciStockChart is a specialised type of control which is designed for stock charts. Stock charts want CategoryDateTimeAxis as they are designed to collapse weekends and overnight gaps where there is no data. My advice is to use SciChartSurface and define your own XAxis, YAxis, ChartModifiers and use DateTimeAxis on the XAxis. For more info, please see here https://www.scichart.com/questions/question/scistockchart-or-scichartsurface-which-is-better-for-real-time-candle-chart
- You must login to post comments
Please login first to submit.