Polar Plot Configuration

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
ELBOB
Posts: 6
Joined: Wed May 13, 2020 3:48 pm

Polar Plot Configuration

Post by ELBOB » Wed May 13, 2020 8:01 pm

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 5080 times
Also, please tell me how to remove the angular label "Degrees" from the Chart.

Arction_LasseP
Posts: 141
Joined: Wed Mar 27, 2019 1:05 pm

Re: Polar Plot Configuration

Post by Arction_LasseP » Thu May 14, 2020 6:58 am

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

ELBOB
Posts: 6
Joined: Wed May 13, 2020 3:48 pm

Re: Polar Plot Configuration

Post by ELBOB » Wed May 27, 2020 1:43 am

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.

Arction_LasseP
Posts: 141
Joined: Wed Mar 27, 2019 1:05 pm

Re: Polar Plot Configuration

Post by Arction_LasseP » Wed May 27, 2020 7:25 am

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

Post Reply