Pre loader

Wrap-around Y-axis

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

Hi!

I was wondering if there is any way to make the Y-axis wrap around?

We are using SciChart in a maritime application that handles the heading of a ship. The heading goes from 0 degrees to 360 degrees (or rather back to 0 degrees). When using a normal Y-axis from 0 to 360 a fluctuating value around 0 degrees (0 degrees +- 0.5 degrees for instance) will draw a line all over the chart’s Y-range, but in real life this is really a small change with little amplitude. A correct representation would be to put 359 degrees at the position of -1 degrees. But if we use negative angles we would still get the problem of large amplitudes at some point in our range (for instance using a range from -180 to 180 would lead to problems when fluctuating around 180).

Regards,
Bjørn Terje Svennes

  • You must to post comments
0
0

Hi!

There isn’t any built-in way to do it, and seems that this is not achievable using any of existing axis. But you can implement implement your own axis and put proper calculations there (we can give you some tips on doing this). Another, a bit tricky solution is just passing large angles as negative values and using ILabelFormatter to represent negative values in another way (see this article to get more info about ILabelFormatters).

Hope this helps!

Best regards,
Yuriy

  • 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