Originally posted by kaustubh ram:

**hi sreedhar**

u r problem is to convert degrees in coordinates.

if u r having four values say 20,30,40,50

their sum is 140.each ark will have a angle of

degree=(number/140)*360

suppose centre of pi circle is 100,100 and refrance line is

g.DrawLine(100,100,150,100);

then other line having angle with this line will be

g.DrawLine(100,100,100+50*(Math.sin(double (deg*3.1415/180)),100+50*(Math.sin(doubl(deg*pi/180)),

100+50*(Math.cos(double (deg*pi/180)))

here 50 is radius of pi chart

and value of pi=3.1415926535897932384636433832792

Hello,

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.

Thanks,

Chris.