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?
- Bart Terrell asked 5 years ago
- You must login to post comments
Hi Bart,
Thanks for your reply. I could reproduce this on our side.
I have logged this in our tracking system.
- Oleksandr Shvets answered 5 years ago
- You must login to post comments
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.
- Oleksandr Shvets answered 5 years ago
- You must login to post comments
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?
- Bart Terrell answered 5 years ago
- You must login to post comments
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.
- Oleksandr Shvets answered 4 years ago
- You must login to post comments
Please login first to submit.