Pre loader

Line Annotations not updating when the Polar XAxis Rotation Angle is changed.

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

Answered
0
0

I recently needed to change the Rotation Angle of a polar plot from the default to 90 degrees. We have line annotations for different points on the polar plot. After the change, the annotation was still plotted on the default Rotation Angle.

I manually updated the points like this for the annotations to work:

var line = new LineAnnotation();

                var x1 = (double)NewSeries.DataSeries.XValues[0];
                var x2 = (double)NewSeries.DataSeries.XValues[1];

                if (x1.Between(0, 90) && x2.Between(0, 90))
                {
                    x1 += 270;
                    x2 += 270;
                }
                else
                {
                    x1 -= 90;
                    x2 -= 90;
                }

                line.X1 = x1;
                line.X2 = x2;

Is there another way to update the annotation or is something like this the preferred way?

Version
5.0 ++
  • You must to post comments
Best Answer
1
1

Hi Bart,

Thanks for your reply. I could reproduce this on our side.

I have logged this in our tracking system.

  • You must to post comments
1
0

Hi Bart,

Thanks for your inquiry.
Could you please provide us with more details regarding this issue? An image or mockup of the desired state would be helpful.

Thanks in advance.

  • You must to post comments
0
0

I attached 3 images. The first shows the annotations not updating with the change of the rotation angle to 90 degrees. The second shows the correct annotations after I manually modify the annotation X1 & X2 values (to account for the new rotation angle) from the code snippet in the original question. My question was is their a preferred method that I missed to update the line annotations or do I need to stick with a workaround like this?

Images
  • You must to post comments
0
0

Hi Bart,

I am sorry for the late reply. I am glad to inform you that the issue with the PolarXAxis is fixed now. The changes are available in the SciChart v5.4.1.12191 and newer. Here is how to get our nightly builds: https://support.scichart.com/index.php?/Knowledgebase/Article/View/17232/37/getting-nightly-builds-with-nuget

If you have any further questions please feel free to ask.

  • You must to post comments
Showing 4 results
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