SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
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).
Bjørn Terje Svennes
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!
Please login first to submit.