Page 1 of 1

Polar Plot Configuration

Posted: Wed May 13, 2020 8:01 pm
by ELBOB
Hello :

I can't configure the angular axis on a polar plot to display values only 4 values, 0,90,180 and 270?
Untitled.png
Untitled.png (67.59 KiB) Viewed 5244 times
Also, please tell me how to remove the angular label "Degrees" from the Chart.

Re: Polar Plot Configuration

Posted: Thu May 14, 2020 6:58 am
by Arction_LasseP
Hello,

By default, the number of angular values (0, 30, 60, 90...) is automatically calculated. To set them manually you need to disable AngularAxisAutoDivSpacing, after which you can use AngularAxisMajorDivCount to set the number of these values, in this case 4.

Code: Select all

_chart.ViewPolar.Axes[0].AngularAxisAutoDivSpacing = false;
_chart.ViewPolar.Axes[0].AngularAxisMajorDivCount = 4;
The Degrees text is the unit label of the angular axis. You can disable it via:

Code: Select all

_chart.ViewPolar.Axes[0].Units.Visible = false;
Hope this helps.
Best regards,
Lasse

Re: Polar Plot Configuration

Posted: Wed May 27, 2020 1:43 am
by ELBOB
Hello Lasse :


This does not seem to be an option available in v6.5.1.4001 ?

Code: Select all

_chart.ViewPolar.Axes[0].AngularAxisAutoDivSpacing = false;
_chart.ViewPolar.Axes[0].AngularAxisMajorDivCount = 4;
is there any other way to do this?

Best Regards.

Re: Polar Plot Configuration

Posted: Wed May 27, 2020 7:25 am
by Arction_LasseP
Hello,

Yes, defining angular grid count manually was introduced in LightningChart version 8.3.1 if I am not mistaken. Therefore these properties or anything similar to them are not available in v6.5.1.

There are only two workarounds that i can see. Obvious one is to update to the newest LightningChart version. Alternatively, the AngularAxis labels could be hidden (visible = false) and four Annotations with the texts 0, 90, 180 and 270 could be used instead. You can disable the border, fill and shadow of the annotations to show only their text. Then you just need to position them correctly.

Best regards,
Lasse