Click the Draw button. If you can use Scratch code to fill a circle from centre, it suggests that it should be quite easy to code a Pie Chart.