The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

drawing a pie chart

Posted by Ken on January 18, 2001 at 1:10 AM

OK, I give up....

What's the routine that draws a pie chart for an array x. The parameters of this method are the graphics context g within which the pie chart is to be drawn and an array x of x.length integer values to be visualized in pie chart form. I wanna Use the method call g.fillArc(left, top, width, height, startangle, arcangle) to draw the segments of the pie and I want the individual pie segments drawn in different colors.

Thanks



Replies:
  • Pie Chart vijay July 13, 2001 at 5:55 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us