I'm a developer of AspenTech. I have some questions.
I want put the first line at 30°. And all lines will be rotated by 30°.
It’s like this:
code:
CategoryAngleAxis caa = RadialChart.Axes[0] as CategoryAngleAxis;
caa.LabelSettings.TextWrapping = TextWrapping.Wrap; caa.LabelSettings.Location = AxisLabelsLocation.InsideRight; caa.StartAngleOffset = 150;
However, the offset of first line is confusing when the total number of lines is 2,3,4......
They are like this:
So, what should I do? And what's the StartAngleOffset?
Hello Bingxin,
I have been investigating into the behavior you are seeing, and the behavior you are currently seeing with the StartAngleOffset set to 150 is expected. I am under the impression that you wish for “point 1” to be 30 degrees above the NumericRadiusAxis. If this is the case, I would recommend setting the StartAngleOffset to -30, or you can set it to 30 with the IsInverted property on the CategoryAngleAxis set to true. Both of these settings should offset the angles in a counterclockwise direction, rather than the clockwise direction shown in your screenshots.
If I have perhaps misunderstood the behavior you are looking to achieve, then would it be possible for you to please provide a mockup screenshot of the behavior you are looking to achieve?
Please let me know if you have any other questions or concerns on this matter.
Hi Andrew,
“point 1” is "StdLiquidDensity" in the following charts. I have set StartAngleOffset as you wrote, but the results aren't what I want.
And do I make the issue clear?
1)
CategoryAngleAxis caa = RadialChart.Axes[0] as CategoryAngleAxis; caa.LabelSettings.TextWrapping = TextWrapping.Wrap; caa.LabelSettings.Location = AxisLabelsLocation.InsideRight; caa.StartAngleOffset = -30;
result:
2)
CategoryAngleAxis caa = RadialChart.Axes[0] as CategoryAngleAxis; caa.LabelSettings.TextWrapping = TextWrapping.Wrap; caa.LabelSettings.Location = AxisLabelsLocation.InsideRight; caa.IsInverted = true; caa.StartAngleOffset = 30;
Thank you for providing the screenshots.
I have been investigating into this, and there appears to be a pair of issues with the CategoryAngleAxis in this case. For reference, I have tested this against the most recent versions of Infragistics for WPF 2020.2 and 2021.1 which are 20.2.20202.53 and 21.1.20211.27 at the time of writing this.
The first issue is that it appears that the IsInverted property on the CategoryAngleAxis being set to “True” does not do anything.
The second is a little bit stranger in that if there is only a single data point in the underlying data collection of the RadialLineSeries, it appears that point starts on the opposite side of the radial plot area than it should – and does – when there is more than one point present. To workaround this for the time being, I believe you will need to check your data source for a single point and add 180 to the StartAngleOffset if there is only a single point so that you can keep this consistent.
Both of these issues are unexpected, and as such I have asked our engineering teams to examine them further. In order to ensure that they receive attention, I have logged them in our internal tracking systems with development IDs of 273183 and 273184. I have also created you a private support case that I will be linking these issues to so that you can be notified when a fix or other resolution becomes available. This support case has an ID of CAS-213516-Z3V3V3 and you can access it here: https://www.infragistics.com/my-account/support-activity.