Hello,
i would like to configure my chart that it looks like a oscilloscope. That means that the gridlines are fixed on the display and not running from right to left. The visible range of the chart should also be fixed and should display a predefined range (e.g. 60 Seconds). Only the data should be displayed as usual. How can i achieve this?
I would be very thankful for a short example.
Best regards
Alexander
- Alexander Lipp asked 5 years ago
- You must login to post comments
Hi Alexander,
Thanks for your question.
Please take a look at our Oscilloscope Demo included in the Examples suite:
https://www.scichart.com/example/wpf-chart-example-oscilloscope-demo/
You can also take a look at our Adding Realtime Updates tutorial:
https://www.scichart.com/documentation/v5.x/webframe.html#Tutorial%2006%20-%20Adding%20Realtime%20Updates.html
Hope this helps.
- Oleksandr Shvets answered 5 years ago
- You must login to post comments
Thank you very much for your answer. I realized the desired functionality by using a TickProvider. Nevertheless i have another question concerning this Oscilloscope-Chart. I configure the chart, that the X-Axis displays a visible range of 60 seconds (0s – 1m). When the data appended to the chart reaches the right end the labels of the major grid lines start to update their values (e.g. 1s – 1m1s, then 2s – 1m2s and so on). However i need to have fixed labels that are not updating their values to show a constant timespan to the user. Our users want to see immediately that the chart displays a timespan of 60s (0s – 1m) and they want not to recalculate in their heads that the displayed visible range of 22s – 1m12 for example are 50seconds.
- Alexander Lipp answered 5 years ago
- You must login to post comments
Hi Alexander,
It should be quite simple. By default SciChart won’t scroll, won’t autorange. If you have a window of 0s to 60s then you must keep your data inside 0s to 60s to act like an oscilloscope. Simple as that.
- To make the chart scroll you need to either change
XAxis.VisibleRange, or set XAxis.AutoRange to Always. - To make the chart static (not scroll) you do nothing (this is the
default behaviour). - To make the chart display intervals from 0 seconds to 60 seconds,
with labels every 5 second which don’t change, use MajorDelta.
Then just make sure the data on your series falls in the range 0 to 60 seconds. So, if it gets to the right edge, and you want to start drawing at the left side again, you can do it like this.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 5 years ago
- last edited 5 years ago
- You must login to post comments
Please login first to submit.