Is it possible to draw a square pie in java?

2723 views javascript

I want to know how to draw a square pie with java, the same as a pie chart but in a square form. Can anyone help me with that?. Thanks.

answered question

Java or JavaScript? They are not the same thing. Also, you need to show some code that you have tried, not just ask for a solution.

Hi Jeffer Leonardo Alarcon Pedraz! Welcome to StackOverflow! The answer to your question is: yes it's possible. We will gladely help you if you post what you have done so far to achieve your goal.

1 Answer


Maybe try setting your square, then set the center point, and then set the points around the square, lastly connect the center point with the edge points and render the screen.

posted this

Have an answer?


Please login first before posting an answer.