Hello :
I can't configure the angular axis on a polar plot to display values only 4 values, 0,90,180 and 270?
Also, please tell me how to remove the angular label "Degrees" from the Chart.
Polar Plot Configuration
Moderator: Queue Moderators
-
- Posts: 141
- Joined: Wed Mar 27, 2019 1:05 pm
Re: Polar Plot Configuration
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.
The Degrees text is the unit label of the angular axis. You can disable it via:
Hope this helps.
Best regards,
Lasse
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;
Code: Select all
_chart.ViewPolar.Axes[0].Units.Visible = false;
Best regards,
Lasse
Re: Polar Plot Configuration
Hello Lasse :
This does not seem to be an option available in v6.5.1.4001 ?
is there any other way to do this?
Best Regards.
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;
Best Regards.
-
- Posts: 141
- Joined: Wed Mar 27, 2019 1:05 pm
Re: Polar Plot Configuration
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
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