Finding centre point of an arc?

11 views
Skip to first unread message

Gareth Murfin

unread,
Mar 26, 2019, 8:40:36 AM3/26/19
to CodenameOne Discussions
I realise this is not strictly a codenameone question but I have been stuck for so long I thought I would ask. I am drawing a pie chart using drawArc(), and I want to draw the percentage text in the middle of the arc. But, how do I find that x,y point? Is there any way I can use other methods in cn1 to help me find this? So far all my attempts to do the maths have failed and not a single answer on the web has worked. My maths is not exactly AAA, so I am unable to solve this for now!.. Any thoughts would be good. Thanks guys, I think its actually quite a tough one though ;-(

Shai Almog

unread,
Mar 26, 2019, 10:59:47 PM3/26/19
to CodenameOne Discussions
You are aware we have a charts API that includes pie chart support right?
Reply all
Reply to author
Forward
0 new messages