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!

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.