I am looking for a way to set the start angle for a doughnut or pie series from XAML.
I see that there is an AngleRange, but I'm not sure how to use this. Again, my requirement is for a XAML only solution.
Thanks!
--lars
3 Answers, 1 is accepted
0
Ivaylo Gergov
Telerik team
answered on 24 May 2013, 03:27 PM
Hi Lars,
Thank you for your interest.
As the AngleRange property of the RadPieChart is of type AngleRange(startAngle,sweepAngle) structure, it cannot be set in XAML(WinRT restrictions). So, you can set it in code like this:
this.chart.Series[0].AngleRange = new AngleRange(90, 180);
The other option you have is to bind the series to a ViewModel that has a property of type AngleRange.
The startAngle is the start angle from which the arc starts(0 matches the (0,0) point) and the sweepAngle is the angle that defines the length of the Arc.
I hope this helps. Let me know if you have any other questions.
Regards,
Ivaylo Gergov
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Thank you. I would like to ask Telerik to consider adding some simple dep properties that are XAML settable. In my opinion, this would improve the design time experience.
0
Ivaylo Gergov
Telerik team
answered on 17 Jun 2013, 01:34 PM
Hi Lars,
Thank you for elaborating on this.
I would suggest you to log this idea as a feature request in our public Ideas and Feedback portal. Thus our community can vote for it and raise its priority.
Regards,
Ivaylo Gergov
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.