Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a Pie Chart

 
Rajeevg7us
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a program that needs to draw a Pie chart based on the selection made for diferrent Check boxes. The slices depict the values of the selections in the Check Box.
Any idea how this can be done...in JAVA......
Thanks in advance...
Rajeev
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Write it yourself using the AWT graphics code.
2. Buy one of the commercially-available java graphing packages.
 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check out the second post at http://www.javaranch.com/ubb/Forum23/HTML/000489.html
Paul

[This message has been edited by Paul Bailey (edited September 21, 2001).]
 
christopson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Bailey:
check out the second post at http://www.javaranch.com/ubb/Forum23/HTML/000489.html
Paul
[This message has been edited by Paul Bailey (edited September 21, 2001).]

How do you conver this applet so that it retrieves sales data as parameters and display the data on a pie chart.
The format of the parameters is the following:
<param name=categories value="cat1..... catn ">
<param name=cat1 value="amount1 ">
<param name=catn value="amountn ">
The amount for each category is represented as an integer. For example, the following are sample sales data for a software superstore.
<param name=categories value="education utility entertainment reference"
<param name=education value=10000>
<param name=utility value=12000>
<param name=entertainment value=30000>
<param name=reference value=9000>
I should add methods to my pie chart
applet so that it meets the Canonical Form of Public Classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic