Help with a pie chart.

I am creating a pie chart for my Java class and there's a part of a string that I don't know or understand. Can anyone explain it to me? The part in question is bolded.

//Draw rent and utilities slice
page.setColor (Color.blue);
startAngle = 0;
arcAngle = (int) (0.40 * DEGREES_IN_CIRCLE);
page.fillArc (x, y, diameter, diameter, startAngle, arcAngle);
page.drawString ("Rent and Utilities (40%)",[b] x + diameter - 15, y + 30)[/b];


Thank you,
Stephanie

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion